{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}R:\WSV2\TBu_BMa\Subsidies Project\Results\HR_Programs_Estimates_2023.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}18 Sep 2023, 08:38:25
{txt}
{com}. 
. use "R:\WSV2\TBu_BMa\Subsidies Project\Data Subsidies\Estimation Sample.dta" 
{txt}
{com}. 
. 
. set more off
{txt}
{com}. 
. egen cmt=group(country month treatc)
{txt}
{com}. egen cy =group(country year)
{txt}
{com}. generate        cat=0
{txt}
{com}. replace         cat=1 if (category=="freezer"|category=="refrigerator")
{txt}(1,740,985 real changes made)

{com}. 
. encode country, gen(c)
{txt}
{com}.  
. xtset id2

{txt}{col 1}Panel variable: {res}id2{txt} (unbalanced)

{com}. 
. 
. preserve
{txt}
{com}. 
. keep if category=="washing machine"
{txt}(1,740,985 observations deleted)

{com}. egen median=median(price) if year==2015 & treatc==1 & month==4
{txt}(769,140 missing values generated)

{com}. gen mprice=1 if price>median & treatc==1 & year==2015 & month==4 & price!=.
{txt}(771,419 missing values generated)

{com}. replace mprice=0 if price<=median & treatc==1 & year==2015 & month==4 & price!=.
{txt}(957 real changes made)

{com}. by id, sort: egen summp=sum(mprice)
{txt}
{com}. by id, sort: gen medprice=1 if summp>0
{txt}(708,446 missing values generated)

{com}. replace medprice=0 if summp==0
{txt}(708,446 real changes made)

{com}. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***UNIT SALES, SUBSIDIZED, WASHING MACHINES
. 
. reghdfe dlogunits i.presub3c##ib1.treatc i.presub2c##ib1.treatc i.presub1c##ib1.treatc i.sub1c##ib1.treatc i.postsub1c##ib1.treatc i.postsub2c##ib1.treatc i.postsub3c##ib1.treatc i.postsub4c##ib1.treatc i.postsub5c##ib1.treatc i.postsub6c##ib1.treatc  i.postsub7c##ib1.treatc mage mage2  if country!="Hungary" , absorb (id2 cmt) cluster(id)
{res}{txt}(dropped 98132 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 2 HDFE groups{col 51}F({res}  24{txt},{res}   5680{txt}){col 67}= {res}     13.79
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4790
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0823
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0028
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.7121

{txt}{ralign 82:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3c {c |}{col 18}{res}{space 2} -.015828{col 30}{space 2} .1251812{col 41}{space 1}   -0.13{col 50}{space 3}0.899{col 58}{space 4} -.261231{col 71}{space 3} .2295749
{txt}{space 8}0.treatc {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0017608{col 30}{space 2}  .165837{col 41}{space 1}   -0.01{col 50}{space 3}0.992{col 58}{space 4}-.3268647{col 71}{space 3} .3233431
{txt}{space 16} {c |}
{space 6}1.presub2c {c |}{col 18}{res}{space 2}-.0432889{col 30}{space 2} .1144623{col 41}{space 1}   -0.38{col 50}{space 3}0.705{col 58}{space 4}-.2676786{col 71}{space 3} .1811008
{txt}{space 16} {c |}
{space 1}presub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .2500181{col 30}{space 2} .1602849{col 41}{space 1}    1.56{col 50}{space 3}0.119{col 58}{space 4}-.0642016{col 71}{space 3} .5642377
{txt}{space 16} {c |}
{space 6}1.presub1c {c |}{col 18}{res}{space 2}-.0758554{col 30}{space 2} .1125598{col 41}{space 1}   -0.67{col 50}{space 3}0.500{col 58}{space 4}-.2965155{col 71}{space 3} .1448047
{txt}{space 16} {c |}
{space 1}presub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0762052{col 30}{space 2} .1491013{col 41}{space 1}   -0.51{col 50}{space 3}0.609{col 58}{space 4}-.3685007{col 71}{space 3} .2160902
{txt}{space 16} {c |}
{space 9}1.sub1c {c |}{col 18}{res}{space 2} .9178049{col 30}{space 2} .0935231{col 41}{space 1}    9.81{col 50}{space 3}0.000{col 58}{space 4} .7344639{col 71}{space 3} 1.101146
{txt}{space 16} {c |}
{space 4}sub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.5534976{col 30}{space 2} .1572098{col 41}{space 1}   -3.52{col 50}{space 3}0.000{col 58}{space 4}-.8616888{col 71}{space 3}-.2453064
{txt}{space 16} {c |}
{space 5}1.postsub1c {c |}{col 18}{res}{space 2}-.8438993{col 30}{space 2} .0963109{col 41}{space 1}   -8.76{col 50}{space 3}0.000{col 58}{space 4}-1.032705{col 71}{space 3}-.6550933
{txt}{space 16} {c |}
postsub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .8749515{col 30}{space 2} .1512305{col 41}{space 1}    5.79{col 50}{space 3}0.000{col 58}{space 4} .5784821{col 71}{space 3} 1.171421
{txt}{space 16} {c |}
{space 5}1.postsub2c {c |}{col 18}{res}{space 2}  .044489{col 30}{space 2} .1022282{col 41}{space 1}    0.44{col 50}{space 3}0.663{col 58}{space 4}-.1559173{col 71}{space 3} .2448952
{txt}{space 16} {c |}
postsub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0926652{col 30}{space 2} .1376459{col 41}{space 1}   -0.67{col 50}{space 3}0.501{col 58}{space 4}-.3625038{col 71}{space 3} .1771733
{txt}{space 16} {c |}
{space 5}1.postsub3c {c |}{col 18}{res}{space 2}-.4053524{col 30}{space 2} .1103049{col 41}{space 1}   -3.67{col 50}{space 3}0.000{col 58}{space 4}-.6215921{col 71}{space 3}-.1891127
{txt}{space 16} {c |}
postsub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .3588293{col 30}{space 2} .1525221{col 41}{space 1}    2.35{col 50}{space 3}0.019{col 58}{space 4} .0598278{col 71}{space 3} .6578308
{txt}{space 16} {c |}
{space 5}1.postsub4c {c |}{col 18}{res}{space 2} .9781083{col 30}{space 2} .1122742{col 41}{space 1}    8.71{col 50}{space 3}0.000{col 58}{space 4} .7580079{col 71}{space 3} 1.198209
{txt}{space 16} {c |}
postsub4c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-1.377204{col 30}{space 2} .1643201{col 41}{space 1}   -8.38{col 50}{space 3}0.000{col 58}{space 4}-1.699334{col 71}{space 3}-1.055074
{txt}{space 16} {c |}
{space 5}1.postsub5c {c |}{col 18}{res}{space 2}-.5943623{col 30}{space 2}  .107285{col 41}{space 1}   -5.54{col 50}{space 3}0.000{col 58}{space 4}-.8046818{col 71}{space 3}-.3840428
{txt}{space 16} {c |}
postsub5c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}  .494429{col 30}{space 2} .1446831{col 41}{space 1}    3.42{col 50}{space 3}0.001{col 58}{space 4} .2107949{col 71}{space 3} .7780632
{txt}{space 16} {c |}
{space 5}1.postsub6c {c |}{col 18}{res}{space 2} .0848138{col 30}{space 2} .1112975{col 41}{space 1}    0.76{col 50}{space 3}0.446{col 58}{space 4}-.1333717{col 71}{space 3} .3029994
{txt}{space 16} {c |}
postsub6c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0530725{col 30}{space 2} .1527426{col 41}{space 1}    0.35{col 50}{space 3}0.728{col 58}{space 4}-.2463614{col 71}{space 3} .3525064
{txt}{space 16} {c |}
{space 5}1.postsub7c {c |}{col 18}{res}{space 2}-.0326895{col 30}{space 2} .1047567{col 41}{space 1}   -0.31{col 50}{space 3}0.755{col 58}{space 4}-.2380527{col 71}{space 3} .1726736
{txt}{space 16} {c |}
postsub7c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0978999{col 30}{space 2} .1503403{col 41}{space 1}   -0.65{col 50}{space 3}0.515{col 58}{space 4}-.3926242{col 71}{space 3} .1968244
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2} -.004428{col 30}{space 2} .0006523{col 41}{space 1}   -6.79{col 50}{space 3}0.000{col 58}{space 4}-.0057066{col 71}{space 3}-.0031493
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000451{col 30}{space 2} 8.66e-06{col 41}{space 1}    5.21{col 50}{space 3}0.000{col 58}{space 4} .0000281{col 71}{space 3} .0000621
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}  .046126{col 30}{space 2} .0096358{col 41}{space 1}    4.79{col 50}{space 3}0.000{col 58}{space 4} .0272361{col 71}{space 3} .0650159
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu
{txt}
{com}. gen samples=e(sample)
{txt}
{com}. codebook id if samples

{txt}{hline}
{res}id{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str11{txt})

{col 10}Unique values: {res}5,681{col 51}{txt}Missing "": {res}0{txt}/{res}213,351

{txt}{col 15}Examples: {res}"28868071"
{col 25}"38681131"
{col 25}"58586717"
{col 25}"76820664"
{txt}
{com}. codebook id if samples & treatc==1

{txt}{hline}
{res}id{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str11{txt})

{col 10}Unique values: {res}1,767{col 51}{txt}Missing "": {res}0{txt}/{res}58,205

{txt}{col 15}Examples: {res}"39386533"
{col 25}"65882790"
{col 25}"76994140"
{col 25}"85451106"
{txt}
{com}. 
.                 
.                 ***Program, preshift and postshift effects (June, two pre-subsidy months, one post-subsidy month)
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1c])*(1+exp(_b[1.presub2c]))-2))
>                                         (postshift:     1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])-1)), post;

     {txt}program: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1c])*(1+exp(_b[1.presub2c]))-2)
   {txt}postshift: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])-1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} 1.222562{col 26}{space 2} .3236909{col 37}{space 1}    3.78{col 46}{space 3}0.000{col 54}{space 4} .5881394{col 67}{space 3} 1.856984
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.0926851{col 26}{space 2} .0980616{col 37}{space 1}   -0.95{col 46}{space 3}0.345{col 54}{space 4}-.2848822{col 67}{space 3} .0995121
{txt}{space 3}postshift {c |}{col 14}{res}{space 2}-.0442308{col 26}{space 2} .1571861{col 37}{space 1}   -0.28{col 46}{space 3}0.778{col 54}{space 4}-.3523099{col 67}{space 3} .2638484
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit        cr              
{txt}delimiter now cr
{com}.                 
.                 ***Net program effect, June
.                 nlcom           _b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .9929611{col 26}{space 2} .6092922{col 37}{space 1}    1.63{col 46}{space 3}0.103{col 54}{space 4}-.2012297{col 67}{space 3} 2.187152
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost, June
.                 nlcom           1000*600468/((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07), level(90)

       {txt}_nl_1: {res}1000*600468/((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 188.3978{col 26}{space 2}  115.603{col 37}{space 1}    1.63{col 46}{space 3}0.103{col 54}{space 4}-1.752272{col 67}{space 3} 378.5479
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost, June (25th percentile)
.                 nlcom           1000*600468/((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*113.1), level(90)

       {txt}_nl_1: {res}1000*600468/((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*113.1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 165.0272{col 26}{space 2} 101.2625{col 37}{space 1}    1.63{col 46}{space 3}0.103{col 54}{space 4}-1.534904{col 67}{space 3} 331.5892
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost, June (10th percentile)
.                 nlcom           1000*600468/((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*125.1), level(90)

       {txt}_nl_1: {res}1000*600468/((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*125.1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 149.1972{col 26}{space 2} 91.54911{col 37}{space 1}    1.63{col 46}{space 3}0.103{col 54}{space 4}-1.387671{col 67}{space 3} 299.7821
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Energy savings, June
.                 nlcom           ((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07)/1000, level(90)

       {txt}_nl_1: {res}((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 3187.234{col 26}{space 2} 1955.723{col 37}{space 1}    1.63{col 46}{space 3}0.103{col 54}{space 4} -29.6442{col 67}{space 3} 6404.113
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 
.                 
. reghdfe dlogunits i.presub3c##ib1.treatc i.presub2c##ib1.treatc i.presub1c##ib1.treatc i.sub1c##ib1.treatc i.postsub1c##ib1.treatc i.postsub2c##ib1.treatc i.postsub3c##ib1.treatc i.postsub4c##ib1.treatc i.postsub5c##ib1.treatc i.postsub6c##ib1.treatc  i.postsub7c##ib1.treatc mage mage2  if country!="Hungary" , absorb (id2 cmt) cluster(id)            
{res}{txt}(dropped 98132 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 2 HDFE groups{col 51}F({res}  24{txt},{res}   5680{txt}){col 67}= {res}     13.79
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4790
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0823
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0028
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.7121

{txt}{ralign 82:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3c {c |}{col 18}{res}{space 2} -.015828{col 30}{space 2} .1251812{col 41}{space 1}   -0.13{col 50}{space 3}0.899{col 58}{space 4} -.261231{col 71}{space 3} .2295749
{txt}{space 8}0.treatc {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0017608{col 30}{space 2}  .165837{col 41}{space 1}   -0.01{col 50}{space 3}0.992{col 58}{space 4}-.3268647{col 71}{space 3} .3233431
{txt}{space 16} {c |}
{space 6}1.presub2c {c |}{col 18}{res}{space 2}-.0432889{col 30}{space 2} .1144623{col 41}{space 1}   -0.38{col 50}{space 3}0.705{col 58}{space 4}-.2676786{col 71}{space 3} .1811008
{txt}{space 16} {c |}
{space 1}presub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .2500181{col 30}{space 2} .1602849{col 41}{space 1}    1.56{col 50}{space 3}0.119{col 58}{space 4}-.0642016{col 71}{space 3} .5642377
{txt}{space 16} {c |}
{space 6}1.presub1c {c |}{col 18}{res}{space 2}-.0758554{col 30}{space 2} .1125598{col 41}{space 1}   -0.67{col 50}{space 3}0.500{col 58}{space 4}-.2965155{col 71}{space 3} .1448047
{txt}{space 16} {c |}
{space 1}presub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0762052{col 30}{space 2} .1491013{col 41}{space 1}   -0.51{col 50}{space 3}0.609{col 58}{space 4}-.3685007{col 71}{space 3} .2160902
{txt}{space 16} {c |}
{space 9}1.sub1c {c |}{col 18}{res}{space 2} .9178049{col 30}{space 2} .0935231{col 41}{space 1}    9.81{col 50}{space 3}0.000{col 58}{space 4} .7344639{col 71}{space 3} 1.101146
{txt}{space 16} {c |}
{space 4}sub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.5534976{col 30}{space 2} .1572098{col 41}{space 1}   -3.52{col 50}{space 3}0.000{col 58}{space 4}-.8616888{col 71}{space 3}-.2453064
{txt}{space 16} {c |}
{space 5}1.postsub1c {c |}{col 18}{res}{space 2}-.8438993{col 30}{space 2} .0963109{col 41}{space 1}   -8.76{col 50}{space 3}0.000{col 58}{space 4}-1.032705{col 71}{space 3}-.6550933
{txt}{space 16} {c |}
postsub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .8749515{col 30}{space 2} .1512305{col 41}{space 1}    5.79{col 50}{space 3}0.000{col 58}{space 4} .5784821{col 71}{space 3} 1.171421
{txt}{space 16} {c |}
{space 5}1.postsub2c {c |}{col 18}{res}{space 2}  .044489{col 30}{space 2} .1022282{col 41}{space 1}    0.44{col 50}{space 3}0.663{col 58}{space 4}-.1559173{col 71}{space 3} .2448952
{txt}{space 16} {c |}
postsub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0926652{col 30}{space 2} .1376459{col 41}{space 1}   -0.67{col 50}{space 3}0.501{col 58}{space 4}-.3625038{col 71}{space 3} .1771733
{txt}{space 16} {c |}
{space 5}1.postsub3c {c |}{col 18}{res}{space 2}-.4053524{col 30}{space 2} .1103049{col 41}{space 1}   -3.67{col 50}{space 3}0.000{col 58}{space 4}-.6215921{col 71}{space 3}-.1891127
{txt}{space 16} {c |}
postsub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .3588293{col 30}{space 2} .1525221{col 41}{space 1}    2.35{col 50}{space 3}0.019{col 58}{space 4} .0598278{col 71}{space 3} .6578308
{txt}{space 16} {c |}
{space 5}1.postsub4c {c |}{col 18}{res}{space 2} .9781083{col 30}{space 2} .1122742{col 41}{space 1}    8.71{col 50}{space 3}0.000{col 58}{space 4} .7580079{col 71}{space 3} 1.198209
{txt}{space 16} {c |}
postsub4c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-1.377204{col 30}{space 2} .1643201{col 41}{space 1}   -8.38{col 50}{space 3}0.000{col 58}{space 4}-1.699334{col 71}{space 3}-1.055074
{txt}{space 16} {c |}
{space 5}1.postsub5c {c |}{col 18}{res}{space 2}-.5943623{col 30}{space 2}  .107285{col 41}{space 1}   -5.54{col 50}{space 3}0.000{col 58}{space 4}-.8046818{col 71}{space 3}-.3840428
{txt}{space 16} {c |}
postsub5c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}  .494429{col 30}{space 2} .1446831{col 41}{space 1}    3.42{col 50}{space 3}0.001{col 58}{space 4} .2107949{col 71}{space 3} .7780632
{txt}{space 16} {c |}
{space 5}1.postsub6c {c |}{col 18}{res}{space 2} .0848138{col 30}{space 2} .1112975{col 41}{space 1}    0.76{col 50}{space 3}0.446{col 58}{space 4}-.1333717{col 71}{space 3} .3029994
{txt}{space 16} {c |}
postsub6c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0530725{col 30}{space 2} .1527426{col 41}{space 1}    0.35{col 50}{space 3}0.728{col 58}{space 4}-.2463614{col 71}{space 3} .3525064
{txt}{space 16} {c |}
{space 5}1.postsub7c {c |}{col 18}{res}{space 2}-.0326895{col 30}{space 2} .1047567{col 41}{space 1}   -0.31{col 50}{space 3}0.755{col 58}{space 4}-.2380527{col 71}{space 3} .1726736
{txt}{space 16} {c |}
postsub7c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0978999{col 30}{space 2} .1503403{col 41}{space 1}   -0.65{col 50}{space 3}0.515{col 58}{space 4}-.3926242{col 71}{space 3} .1968244
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2} -.004428{col 30}{space 2} .0006523{col 41}{space 1}   -6.79{col 50}{space 3}0.000{col 58}{space 4}-.0057066{col 71}{space 3}-.0031493
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000451{col 30}{space 2} 8.66e-06{col 41}{space 1}    5.21{col 50}{space 3}0.000{col 58}{space 4} .0000281{col 71}{space 3} .0000621
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}  .046126{col 30}{space 2} .0096358{col 41}{space 1}    4.79{col 50}{space 3}0.000{col 58}{space 4} .0272361{col 71}{space 3} .0650159
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}.                 
.                 
.                 ***Program, preshift and postshift effects (October, two pre-subsidy months, two post-subsidy months)                                                                                                                                             
. 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1))
>                                         (preshift:      1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*(1+exp(_b[1.postsub3c]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])*exp(_b[1.postsub5c])*(1+exp(_b[1.postsub6c]))-2)), post;

     {txt}program: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1)
    {txt}preshift: {res}1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*(1+exp(_b[1.postsub3c]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])*exp(_b[1.postsub5c])*(1+exp(_b[1.postsub6c]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .7718179{col 26}{space 2} .3405842{col 37}{space 1}    2.27{col 46}{space 3}0.023{col 54}{space 4} .1042851{col 67}{space 3} 1.439351
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1672538{col 26}{space 2} .1458444{col 37}{space 1}   -1.15{col 46}{space 3}0.251{col 54}{space 4}-.4531035{col 67}{space 3}  .118596
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .0211706{col 26}{space 2} .2028288{col 37}{space 1}    0.10{col 46}{space 3}0.917{col 54}{space 4}-.3763665{col 67}{space 3} .4187076
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit        cr              
{txt}delimiter now cr
{com}.                 
.                 ***Net program effect, October
.                 nlcom           _b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift]    

       {txt}_nl_1: {res}_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .4796515{col 26}{space 2} .9829998{col 37}{space 1}    0.49{col 46}{space 3}0.626{col 54}{space 4}-1.446993{col 67}{space 3} 2.406296
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost, October
.                 nlcom           1000*634707/((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)

       {txt}_nl_1: {res}1000*634707/((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}   337.66{col 26}{space 2} 692.0018{col 37}{space 1}    0.49{col 46}{space 3}0.626{col 54}{space 4}-1018.639{col 67}{space 3} 1693.959
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost, October (25th percentile)
.                 nlcom           1000*634707/((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*113.1)

       {txt}_nl_1: {res}1000*634707/((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*113.1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 295.7735{col 26}{space 2} 606.1593{col 37}{space 1}    0.49{col 46}{space 3}0.626{col 54}{space 4} -892.277{col 67}{space 3} 1483.824
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost, October (10th percentile)
.                 nlcom           1000*634707/((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*125.1)

       {txt}_nl_1: {res}1000*634707/((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*125.1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 267.4019{col 26}{space 2} 548.0146{col 37}{space 1}    0.49{col 46}{space 3}0.626{col 54}{space 4}-806.6869{col 67}{space 3} 1341.491
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Energy savings, October
.                 nlcom           ((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)/1000

       {txt}_nl_1: {res}((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1879.722{col 26}{space 2}  3852.31{col 37}{space 1}    0.49{col 46}{space 3}0.626{col 54}{space 4}-5670.667{col 67}{space 3} 9430.112
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***UNIT SALES, SUBSIDIZED, WASHING MACHINES, CY-fe
. 
. reghdfe dlogunits i.presub3c##ib1.treatc i.presub2c##ib1.treatc i.presub1c##ib1.treatc i.sub1c##ib1.treatc i.postsub1c##ib1.treatc i.postsub2c##ib1.treatc i.postsub3c##ib1.treatc i.postsub4c##ib1.treatc i.postsub5c##ib1.treatc i.postsub6c##ib1.treatc  i.postsub7c##ib1.treatc mage mage2  if country!="Hungary" , absorb (id2 cmt cy) cluster(id)
{res}{txt}(dropped 98132 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 71 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 3 HDFE groups{col 51}F({res}  24{txt},{res}   5680{txt}){col 67}= {res}     13.86
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4794
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0823
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0028
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.7121

{txt}{ralign 82:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3c {c |}{col 18}{res}{space 2} .0129956{col 30}{space 2} .1421021{col 41}{space 1}    0.09{col 50}{space 3}0.927{col 58}{space 4}-.2655787{col 71}{space 3}   .29157
{txt}{space 8}0.treatc {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0019818{col 30}{space 2} .1659374{col 41}{space 1}   -0.01{col 50}{space 3}0.990{col 58}{space 4}-.3272825{col 71}{space 3} .3233189
{txt}{space 16} {c |}
{space 6}1.presub2c {c |}{col 18}{res}{space 2}-.0137141{col 30}{space 2} .1245143{col 41}{space 1}   -0.11{col 50}{space 3}0.912{col 58}{space 4}-.2578096{col 71}{space 3} .2303814
{txt}{space 16} {c |}
{space 1}presub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .2490861{col 30}{space 2} .1605605{col 41}{space 1}    1.55{col 50}{space 3}0.121{col 58}{space 4}-.0656738{col 71}{space 3} .5638461
{txt}{space 16} {c |}
{space 6}1.presub1c {c |}{col 18}{res}{space 2}-.0461981{col 30}{space 2} .1239794{col 41}{space 1}   -0.37{col 50}{space 3}0.709{col 58}{space 4} -.289245{col 71}{space 3} .1968488
{txt}{space 16} {c |}
{space 1}presub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0767662{col 30}{space 2} .1485612{col 41}{space 1}   -0.52{col 50}{space 3}0.605{col 58}{space 4}-.3680028{col 71}{space 3} .2144704
{txt}{space 16} {c |}
{space 9}1.sub1c {c |}{col 18}{res}{space 2}  .944861{col 30}{space 2} .1015283{col 41}{space 1}    9.31{col 50}{space 3}0.000{col 58}{space 4} .7458268{col 71}{space 3} 1.143895
{txt}{space 16} {c |}
{space 4}sub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.5514994{col 30}{space 2} .1575866{col 41}{space 1}   -3.50{col 50}{space 3}0.000{col 58}{space 4}-.8604292{col 71}{space 3}-.2425695
{txt}{space 16} {c |}
{space 5}1.postsub1c {c |}{col 18}{res}{space 2}   -.8175{col 30}{space 2}  .104362{col 41}{space 1}   -7.83{col 50}{space 3}0.000{col 58}{space 4}-1.022089{col 71}{space 3}-.6129106
{txt}{space 16} {c |}
postsub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .8766496{col 30}{space 2} .1515261{col 41}{space 1}    5.79{col 50}{space 3}0.000{col 58}{space 4} .5796007{col 71}{space 3} 1.173699
{txt}{space 16} {c |}
{space 5}1.postsub2c {c |}{col 18}{res}{space 2} .0708177{col 30}{space 2} .1121643{col 41}{space 1}    0.63{col 50}{space 3}0.528{col 58}{space 4}-.1490671{col 71}{space 3} .2907025
{txt}{space 16} {c |}
postsub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0892195{col 30}{space 2}  .137627{col 41}{space 1}   -0.65{col 50}{space 3}0.517{col 58}{space 4}-.3590209{col 71}{space 3} .1805819
{txt}{space 16} {c |}
{space 5}1.postsub3c {c |}{col 18}{res}{space 2}-.3796713{col 30}{space 2} .1221851{col 41}{space 1}   -3.11{col 50}{space 3}0.002{col 58}{space 4}-.6192009{col 71}{space 3}-.1401418
{txt}{space 16} {c |}
postsub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .3618817{col 30}{space 2} .1533897{col 41}{space 1}    2.36{col 50}{space 3}0.018{col 58}{space 4} .0611793{col 71}{space 3} .6625841
{txt}{space 16} {c |}
{space 5}1.postsub4c {c |}{col 18}{res}{space 2} 1.004243{col 30}{space 2} .1184865{col 41}{space 1}    8.48{col 50}{space 3}0.000{col 58}{space 4} .7719643{col 71}{space 3} 1.236522
{txt}{space 16} {c |}
postsub4c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-1.372598{col 30}{space 2} .1643995{col 41}{space 1}   -8.35{col 50}{space 3}0.000{col 58}{space 4}-1.694884{col 71}{space 3}-1.050313
{txt}{space 16} {c |}
{space 5}1.postsub5c {c |}{col 18}{res}{space 2} -.567723{col 30}{space 2} .1209271{col 41}{space 1}   -4.69{col 50}{space 3}0.000{col 58}{space 4}-.8047863{col 71}{space 3}-.3306597
{txt}{space 16} {c |}
postsub5c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .4987436{col 30}{space 2} .1452866{col 41}{space 1}    3.43{col 50}{space 3}0.001{col 58}{space 4} .2139265{col 71}{space 3} .7835608
{txt}{space 16} {c |}
{space 5}1.postsub6c {c |}{col 18}{res}{space 2} .1104866{col 30}{space 2} .1186111{col 41}{space 1}    0.93{col 50}{space 3}0.352{col 58}{space 4}-.1220365{col 71}{space 3} .3430097
{txt}{space 16} {c |}
postsub6c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0606024{col 30}{space 2} .1527397{col 41}{space 1}    0.40{col 50}{space 3}0.692{col 58}{space 4}-.2388258{col 71}{space 3} .3600306
{txt}{space 16} {c |}
{space 5}1.postsub7c {c |}{col 18}{res}{space 2}-.0054106{col 30}{space 2} .1121082{col 41}{space 1}   -0.05{col 50}{space 3}0.962{col 58}{space 4}-.2251854{col 71}{space 3} .2143642
{txt}{space 16} {c |}
postsub7c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.1261399{col 30}{space 2} .1523066{col 41}{space 1}   -0.83{col 50}{space 3}0.408{col 58}{space 4}-.4247189{col 71}{space 3} .1724392
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0050949{col 30}{space 2} .0007141{col 41}{space 1}   -7.13{col 50}{space 3}0.000{col 58}{space 4}-.0064948{col 71}{space 3} -.003695
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000517{col 30}{space 2} 9.56e-06{col 41}{space 1}    5.41{col 50}{space 3}0.000{col 58}{space 4}  .000033{col 71}{space 3} .0000705
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .0565548{col 30}{space 2} .0104462{col 41}{space 1}    5.41{col 50}{space 3}0.000{col 58}{space 4} .0360764{col 71}{space 3} .0770333
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}          cy{col 14}{c |}{space 1}       94{col 27}{space 1}        7{col 39}{result}{space 1}       87{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_cy               
{txt}
{com}. 
. 
.                 ***Program, preshift and postshift effects (June, two pre-subsidy months, one post-subsidy month)
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1c])*(1+exp(_b[1.presub2c]))-2))
>                                         (postshift:     1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])-1)), post;

     {txt}program: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1c])*(1+exp(_b[1.presub2c]))-2)
   {txt}postshift: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])-1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2}  1.42286{col 26}{space 2} .4921764{col 37}{space 1}    2.89{col 46}{space 3}0.004{col 54}{space 4} .4582123{col 67}{space 3} 2.387508
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}  -.05165{col 26}{space 2} .1256574{col 37}{space 1}   -0.41{col 46}{space 3}0.681{col 54}{space 4}-.2979339{col 67}{space 3} .1946339
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .0697755{col 26}{space 2} .2625758{col 37}{space 1}    0.27{col 46}{space 3}0.790{col 54}{space 4}-.4448637{col 67}{space 3} .5844146
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit        cr              
{txt}delimiter now cr
{com}.                 
.                 ***Net program effect, June
.                 nlcom           _b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.389336{col 26}{space 2} .9514824{col 37}{space 1}    1.46{col 46}{space 3}0.144{col 54}{space 4}-.4755355{col 67}{space 3} 3.254207
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost, June
.                 nlcom           1000*600468/((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07), level(90)

       {txt}_nl_1: {res}1000*600468/((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 134.6483{col 26}{space 2} 92.21348{col 37}{space 1}    1.46{col 46}{space 3}0.144{col 54}{space 4}-17.02938{col 67}{space 3}  286.326
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Energy savings, June
.                 nlcom           ((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07)/1000, level(90)

       {txt}_nl_1: {res}((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 4459.529{col 26}{space 2} 3054.095{col 37}{space 1}    1.46{col 46}{space 3}0.144{col 54}{space 4}-564.0101{col 67}{space 3} 9483.069
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. reghdfe dlogunits i.presub3c##ib1.treatc i.presub2c##ib1.treatc i.presub1c##ib1.treatc i.sub1c##ib1.treatc i.postsub1c##ib1.treatc i.postsub2c##ib1.treatc i.postsub3c##ib1.treatc i.postsub4c##ib1.treatc i.postsub5c##ib1.treatc i.postsub6c##ib1.treatc  i.postsub7c##ib1.treatc mage mage2  if country!="Hungary" , absorb (id2 cmt cy) cluster(id)         
{res}{txt}(dropped 98132 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 71 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 3 HDFE groups{col 51}F({res}  24{txt},{res}   5680{txt}){col 67}= {res}     13.86
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4794
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0823
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0028
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.7121

{txt}{ralign 82:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3c {c |}{col 18}{res}{space 2} .0129956{col 30}{space 2} .1421021{col 41}{space 1}    0.09{col 50}{space 3}0.927{col 58}{space 4}-.2655787{col 71}{space 3}   .29157
{txt}{space 8}0.treatc {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0019818{col 30}{space 2} .1659374{col 41}{space 1}   -0.01{col 50}{space 3}0.990{col 58}{space 4}-.3272825{col 71}{space 3} .3233189
{txt}{space 16} {c |}
{space 6}1.presub2c {c |}{col 18}{res}{space 2}-.0137141{col 30}{space 2} .1245143{col 41}{space 1}   -0.11{col 50}{space 3}0.912{col 58}{space 4}-.2578096{col 71}{space 3} .2303814
{txt}{space 16} {c |}
{space 1}presub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .2490861{col 30}{space 2} .1605605{col 41}{space 1}    1.55{col 50}{space 3}0.121{col 58}{space 4}-.0656738{col 71}{space 3} .5638461
{txt}{space 16} {c |}
{space 6}1.presub1c {c |}{col 18}{res}{space 2}-.0461981{col 30}{space 2} .1239794{col 41}{space 1}   -0.37{col 50}{space 3}0.709{col 58}{space 4} -.289245{col 71}{space 3} .1968488
{txt}{space 16} {c |}
{space 1}presub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0767662{col 30}{space 2} .1485612{col 41}{space 1}   -0.52{col 50}{space 3}0.605{col 58}{space 4}-.3680028{col 71}{space 3} .2144704
{txt}{space 16} {c |}
{space 9}1.sub1c {c |}{col 18}{res}{space 2}  .944861{col 30}{space 2} .1015283{col 41}{space 1}    9.31{col 50}{space 3}0.000{col 58}{space 4} .7458268{col 71}{space 3} 1.143895
{txt}{space 16} {c |}
{space 4}sub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.5514994{col 30}{space 2} .1575866{col 41}{space 1}   -3.50{col 50}{space 3}0.000{col 58}{space 4}-.8604292{col 71}{space 3}-.2425695
{txt}{space 16} {c |}
{space 5}1.postsub1c {c |}{col 18}{res}{space 2}   -.8175{col 30}{space 2}  .104362{col 41}{space 1}   -7.83{col 50}{space 3}0.000{col 58}{space 4}-1.022089{col 71}{space 3}-.6129106
{txt}{space 16} {c |}
postsub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .8766496{col 30}{space 2} .1515261{col 41}{space 1}    5.79{col 50}{space 3}0.000{col 58}{space 4} .5796007{col 71}{space 3} 1.173699
{txt}{space 16} {c |}
{space 5}1.postsub2c {c |}{col 18}{res}{space 2} .0708177{col 30}{space 2} .1121643{col 41}{space 1}    0.63{col 50}{space 3}0.528{col 58}{space 4}-.1490671{col 71}{space 3} .2907025
{txt}{space 16} {c |}
postsub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0892195{col 30}{space 2}  .137627{col 41}{space 1}   -0.65{col 50}{space 3}0.517{col 58}{space 4}-.3590209{col 71}{space 3} .1805819
{txt}{space 16} {c |}
{space 5}1.postsub3c {c |}{col 18}{res}{space 2}-.3796713{col 30}{space 2} .1221851{col 41}{space 1}   -3.11{col 50}{space 3}0.002{col 58}{space 4}-.6192009{col 71}{space 3}-.1401418
{txt}{space 16} {c |}
postsub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .3618817{col 30}{space 2} .1533897{col 41}{space 1}    2.36{col 50}{space 3}0.018{col 58}{space 4} .0611793{col 71}{space 3} .6625841
{txt}{space 16} {c |}
{space 5}1.postsub4c {c |}{col 18}{res}{space 2} 1.004243{col 30}{space 2} .1184865{col 41}{space 1}    8.48{col 50}{space 3}0.000{col 58}{space 4} .7719643{col 71}{space 3} 1.236522
{txt}{space 16} {c |}
postsub4c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-1.372598{col 30}{space 2} .1643995{col 41}{space 1}   -8.35{col 50}{space 3}0.000{col 58}{space 4}-1.694884{col 71}{space 3}-1.050313
{txt}{space 16} {c |}
{space 5}1.postsub5c {c |}{col 18}{res}{space 2} -.567723{col 30}{space 2} .1209271{col 41}{space 1}   -4.69{col 50}{space 3}0.000{col 58}{space 4}-.8047863{col 71}{space 3}-.3306597
{txt}{space 16} {c |}
postsub5c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .4987436{col 30}{space 2} .1452866{col 41}{space 1}    3.43{col 50}{space 3}0.001{col 58}{space 4} .2139265{col 71}{space 3} .7835608
{txt}{space 16} {c |}
{space 5}1.postsub6c {c |}{col 18}{res}{space 2} .1104866{col 30}{space 2} .1186111{col 41}{space 1}    0.93{col 50}{space 3}0.352{col 58}{space 4}-.1220365{col 71}{space 3} .3430097
{txt}{space 16} {c |}
postsub6c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0606024{col 30}{space 2} .1527397{col 41}{space 1}    0.40{col 50}{space 3}0.692{col 58}{space 4}-.2388258{col 71}{space 3} .3600306
{txt}{space 16} {c |}
{space 5}1.postsub7c {c |}{col 18}{res}{space 2}-.0054106{col 30}{space 2} .1121082{col 41}{space 1}   -0.05{col 50}{space 3}0.962{col 58}{space 4}-.2251854{col 71}{space 3} .2143642
{txt}{space 16} {c |}
postsub7c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.1261399{col 30}{space 2} .1523066{col 41}{space 1}   -0.83{col 50}{space 3}0.408{col 58}{space 4}-.4247189{col 71}{space 3} .1724392
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0050949{col 30}{space 2} .0007141{col 41}{space 1}   -7.13{col 50}{space 3}0.000{col 58}{space 4}-.0064948{col 71}{space 3} -.003695
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000517{col 30}{space 2} 9.56e-06{col 41}{space 1}    5.41{col 50}{space 3}0.000{col 58}{space 4}  .000033{col 71}{space 3} .0000705
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .0565548{col 30}{space 2} .0104462{col 41}{space 1}    5.41{col 50}{space 3}0.000{col 58}{space 4} .0360764{col 71}{space 3} .0770333
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}          cy{col 14}{c |}{space 1}       94{col 27}{space 1}        7{col 39}{result}{space 1}       87{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. 
. 
.                 ***Program, preshift and postshift effects (October, two pre-subsidy months, two post-subsidy months)                                                                                                                                             
. 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1))
>                                         (preshift:      1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*(1+exp(_b[1.postsub3c]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])*exp(_b[1.postsub5c])*(1+exp(_b[1.postsub6c]))-2)), post;

     {txt}program: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1)
    {txt}preshift: {res}1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*(1+exp(_b[1.postsub3c]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])*exp(_b[1.postsub5c])*(1+exp(_b[1.postsub6c]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} 1.144354{col 26}{space 2} .7996427{col 37}{space 1}    1.43{col 46}{space 3}0.152{col 54}{space 4} -.422917{col 67}{space 3} 2.711625
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.0330975{col 26}{space 2} .2948524{col 37}{space 1}   -0.11{col 46}{space 3}0.911{col 54}{space 4}-.6109976{col 67}{space 3} .5448027
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .2864465{col 26}{space 2} .5722394{col 37}{space 1}    0.50{col 46}{space 3}0.617{col 54}{space 4}-.8351222{col 67}{space 3} 1.408015
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit        cr              
{txt}delimiter now cr
{com}.                 
.                 ***Net program effect, October
.                 nlcom           _b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift]    

       {txt}_nl_1: {res}_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.651052{col 26}{space 2} 2.497121{col 37}{space 1}    0.66{col 46}{space 3}0.508{col 54}{space 4}-3.243216{col 67}{space 3} 6.545319
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost, October
.                 nlcom           1000*634707/((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)

       {txt}_nl_1: {res}1000*634707/((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 98.09452{col 26}{space 2} 148.3623{col 37}{space 1}    0.66{col 46}{space 3}0.508{col 54}{space 4}-192.6903{col 67}{space 3} 388.8793
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Energy savings, October
.                 nlcom           ((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)/1000

       {txt}_nl_1: {res}((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 6470.361{col 26}{space 2}  9786.05{col 37}{space 1}    0.66{col 46}{space 3}0.508{col 54}{space 4}-12709.94{col 67}{space 3} 25650.67
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***UNIT SALES, SUBSIDIZED, WASHING MACHINES, Country-specific linear date trends
. reghdfe dlogunits i.presub3c##ib1.treatc i.presub2c##ib1.treatc i.presub1c##ib1.treatc i.sub1c##ib1.treatc i.postsub1c##ib1.treatc i.postsub2c##ib1.treatc i.postsub3c##ib1.treatc i.postsub4c##ib1.treatc i.postsub5c##ib1.treatc i.postsub6c##ib1.treatc  i.postsub7c##ib1.treatc mage mage2  if country!="Hungary" , absorb (id2 cmt i.c#c.date) cluster(id)
{res}{txt}(dropped 98132 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 86 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 3 HDFE groups{col 51}F({res}  24{txt},{res}   5680{txt}){col 67}= {res}     13.56
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4790
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0823
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0027
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.7121

{txt}{ralign 82:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3c {c |}{col 18}{res}{space 2}-.0126615{col 30}{space 2} .1253119{col 41}{space 1}   -0.10{col 50}{space 3}0.920{col 58}{space 4}-.2583206{col 71}{space 3} .2329976
{txt}{space 8}0.treatc {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0070535{col 30}{space 2} .1658545{col 41}{space 1}    0.04{col 50}{space 3}0.966{col 58}{space 4}-.3180848{col 71}{space 3} .3321917
{txt}{space 16} {c |}
{space 6}1.presub2c {c |}{col 18}{res}{space 2}-.0398719{col 30}{space 2} .1144654{col 41}{space 1}   -0.35{col 50}{space 3}0.728{col 58}{space 4}-.2642679{col 71}{space 3}  .184524
{txt}{space 16} {c |}
{space 1}presub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .2590194{col 30}{space 2} .1603517{col 41}{space 1}    1.62{col 50}{space 3}0.106{col 58}{space 4}-.0553311{col 71}{space 3}   .57337
{txt}{space 16} {c |}
{space 6}1.presub1c {c |}{col 18}{res}{space 2}-.0728362{col 30}{space 2} .1125888{col 41}{space 1}   -0.65{col 50}{space 3}0.518{col 58}{space 4}-.2935532{col 71}{space 3} .1478809
{txt}{space 16} {c |}
{space 1}presub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0670191{col 30}{space 2} .1488684{col 41}{space 1}   -0.45{col 50}{space 3}0.653{col 58}{space 4}-.3588579{col 71}{space 3} .2248197
{txt}{space 16} {c |}
{space 9}1.sub1c {c |}{col 18}{res}{space 2} .9212529{col 30}{space 2} .0935113{col 41}{space 1}    9.85{col 50}{space 3}0.000{col 58}{space 4}  .737935{col 71}{space 3} 1.104571
{txt}{space 16} {c |}
{space 4}sub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} -.544322{col 30}{space 2} .1573061{col 41}{space 1}   -3.46{col 50}{space 3}0.001{col 58}{space 4} -.852702{col 71}{space 3} -.235942
{txt}{space 16} {c |}
{space 5}1.postsub1c {c |}{col 18}{res}{space 2}-.8408401{col 30}{space 2} .0963281{col 41}{space 1}   -8.73{col 50}{space 3}0.000{col 58}{space 4} -1.02968{col 71}{space 3}-.6520003
{txt}{space 16} {c |}
postsub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .8844289{col 30}{space 2} .1514362{col 41}{space 1}    5.84{col 50}{space 3}0.000{col 58}{space 4} .5875561{col 71}{space 3} 1.181302
{txt}{space 16} {c |}
{space 5}1.postsub2c {c |}{col 18}{res}{space 2} .0476555{col 30}{space 2} .1022322{col 41}{space 1}    0.47{col 50}{space 3}0.641{col 58}{space 4}-.1527586{col 71}{space 3} .2480697
{txt}{space 16} {c |}
postsub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0826108{col 30}{space 2} .1376811{col 41}{space 1}   -0.60{col 50}{space 3}0.549{col 58}{space 4}-.3525183{col 71}{space 3} .1872966
{txt}{space 16} {c |}
{space 5}1.postsub3c {c |}{col 18}{res}{space 2}-.4024617{col 30}{space 2} .1103003{col 41}{space 1}   -3.65{col 50}{space 3}0.000{col 58}{space 4}-.6186924{col 71}{space 3} -.186231
{txt}{space 16} {c |}
postsub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .3693948{col 30}{space 2} .1529591{col 41}{space 1}    2.41{col 50}{space 3}0.016{col 58}{space 4} .0695365{col 71}{space 3} .6692531
{txt}{space 16} {c |}
{space 5}1.postsub4c {c |}{col 18}{res}{space 2} .9816675{col 30}{space 2} .1122374{col 41}{space 1}    8.75{col 50}{space 3}0.000{col 58}{space 4} .7616393{col 71}{space 3} 1.201696
{txt}{space 16} {c |}
postsub4c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-1.366631{col 30}{space 2} .1643046{col 41}{space 1}   -8.32{col 50}{space 3}0.000{col 58}{space 4}-1.688731{col 71}{space 3}-1.044531
{txt}{space 16} {c |}
{space 5}1.postsub5c {c |}{col 18}{res}{space 2}-.5909462{col 30}{space 2} .1072711{col 41}{space 1}   -5.51{col 50}{space 3}0.000{col 58}{space 4}-.8012385{col 71}{space 3}-.3806539
{txt}{space 16} {c |}
postsub5c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}  .504523{col 30}{space 2} .1448656{col 41}{space 1}    3.48{col 50}{space 3}0.001{col 58}{space 4} .2205312{col 71}{space 3} .7885148
{txt}{space 16} {c |}
{space 5}1.postsub6c {c |}{col 18}{res}{space 2} .0883993{col 30}{space 2} .1113581{col 41}{space 1}    0.79{col 50}{space 3}0.427{col 58}{space 4}-.1299052{col 71}{space 3} .3067037
{txt}{space 16} {c |}
postsub6c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}  .062981{col 30}{space 2} .1529078{col 41}{space 1}    0.41{col 50}{space 3}0.680{col 58}{space 4}-.2367767{col 71}{space 3} .3627386
{txt}{space 16} {c |}
{space 5}1.postsub7c {c |}{col 18}{res}{space 2}-.0288679{col 30}{space 2}  .104903{col 41}{space 1}   -0.28{col 50}{space 3}0.783{col 58}{space 4}-.2345178{col 71}{space 3}  .176782
{txt}{space 16} {c |}
postsub7c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0880127{col 30}{space 2} .1506574{col 41}{space 1}   -0.58{col 50}{space 3}0.559{col 58}{space 4}-.3833586{col 71}{space 3} .2073333
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0044742{col 30}{space 2} .0006692{col 41}{space 1}   -6.69{col 50}{space 3}0.000{col 58}{space 4}-.0057862{col 71}{space 3}-.0031623
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000454{col 30}{space 2} 8.77e-06{col 41}{space 1}    5.18{col 50}{space 3}0.000{col 58}{space 4} .0000282{col 71}{space 3} .0000626
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .0469398{col 30}{space 2} .0099519{col 41}{space 1}    4.72{col 50}{space 3}0.000{col 58}{space 4} .0274302{col 71}{space 3} .0664493
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}    c#c.date{col 14}{c |}{space 1}        7{col 27}{space 1}        0{col 39}{result}{space 1}        7{col 53}{text}?{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_trends           
{txt}
{com}. 
. 
.                 ***Program, preshift and postshift effects (June, two pre-subsidy months, one post-subsidy month)
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1c])*(1+exp(_b[1.presub2c]))-2))
>                                         (postshift:     1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])-1)), post;

     {txt}program: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1c])*(1+exp(_b[1.presub2c]))-2)
   {txt}postshift: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])-1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} 1.244639{col 26}{space 2} .3270093{col 37}{space 1}    3.81{col 46}{space 3}0.000{col 54}{space 4} .6037128{col 67}{space 3} 1.885566
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.0884177{col 26}{space 2} .0985757{col 37}{space 1}   -0.90{col 46}{space 3}0.370{col 54}{space 4}-.2816225{col 67}{space 3} .1047871
{txt}{space 3}postshift {c |}{col 14}{res}{space 2}-.0317794{col 26}{space 2} .1593217{col 37}{space 1}   -0.20{col 46}{space 3}0.842{col 54}{space 4}-.3440441{col 67}{space 3} .2804854
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit        cr              
{txt}delimiter now cr
{com}.                 
.                 ***Net program effect, June
.                 nlcom           _b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.036025{col 26}{space 2} .6153071{col 37}{space 1}    1.68{col 46}{space 3}0.092{col 54}{space 4}-.1699552{col 67}{space 3} 2.242004
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost, June
.                 nlcom           1000*600468/((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07), level(90)

       {txt}_nl_1: {res}1000*600468/((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 180.5669{col 26}{space 2} 107.2408{col 37}{space 1}    1.68{col 46}{space 3}0.092{col 54}{space 4} 4.171487{col 67}{space 3} 356.9622
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Energy savings, June
.                 nlcom           ((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07)/1000, level(90)

       {txt}_nl_1: {res}((_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift])*2314.257*14*99.07)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [90% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 3325.461{col 26}{space 2}  1975.03{col 37}{space 1}    1.68{col 46}{space 3}0.092{col 54}{space 4} 76.82538{col 67}{space 3} 6574.096
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. reghdfe dlogunits i.presub3c##ib1.treatc i.presub2c##ib1.treatc i.presub1c##ib1.treatc i.sub1c##ib1.treatc i.postsub1c##ib1.treatc i.postsub2c##ib1.treatc i.postsub3c##ib1.treatc i.postsub4c##ib1.treatc i.postsub5c##ib1.treatc i.postsub6c##ib1.treatc  i.postsub7c##ib1.treatc mage mage2  if country!="Hungary" , absorb (id2 cmt i.c#c.date) cluster(id)         
{res}{txt}(dropped 98132 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 86 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 3 HDFE groups{col 51}F({res}  24{txt},{res}   5680{txt}){col 67}= {res}     13.56
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4790
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0823
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0027
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.7121

{txt}{ralign 82:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3c {c |}{col 18}{res}{space 2}-.0126615{col 30}{space 2} .1253119{col 41}{space 1}   -0.10{col 50}{space 3}0.920{col 58}{space 4}-.2583206{col 71}{space 3} .2329976
{txt}{space 8}0.treatc {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0070535{col 30}{space 2} .1658545{col 41}{space 1}    0.04{col 50}{space 3}0.966{col 58}{space 4}-.3180848{col 71}{space 3} .3321917
{txt}{space 16} {c |}
{space 6}1.presub2c {c |}{col 18}{res}{space 2}-.0398719{col 30}{space 2} .1144654{col 41}{space 1}   -0.35{col 50}{space 3}0.728{col 58}{space 4}-.2642679{col 71}{space 3}  .184524
{txt}{space 16} {c |}
{space 1}presub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .2590194{col 30}{space 2} .1603517{col 41}{space 1}    1.62{col 50}{space 3}0.106{col 58}{space 4}-.0553311{col 71}{space 3}   .57337
{txt}{space 16} {c |}
{space 6}1.presub1c {c |}{col 18}{res}{space 2}-.0728362{col 30}{space 2} .1125888{col 41}{space 1}   -0.65{col 50}{space 3}0.518{col 58}{space 4}-.2935532{col 71}{space 3} .1478809
{txt}{space 16} {c |}
{space 1}presub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0670191{col 30}{space 2} .1488684{col 41}{space 1}   -0.45{col 50}{space 3}0.653{col 58}{space 4}-.3588579{col 71}{space 3} .2248197
{txt}{space 16} {c |}
{space 9}1.sub1c {c |}{col 18}{res}{space 2} .9212529{col 30}{space 2} .0935113{col 41}{space 1}    9.85{col 50}{space 3}0.000{col 58}{space 4}  .737935{col 71}{space 3} 1.104571
{txt}{space 16} {c |}
{space 4}sub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} -.544322{col 30}{space 2} .1573061{col 41}{space 1}   -3.46{col 50}{space 3}0.001{col 58}{space 4} -.852702{col 71}{space 3} -.235942
{txt}{space 16} {c |}
{space 5}1.postsub1c {c |}{col 18}{res}{space 2}-.8408401{col 30}{space 2} .0963281{col 41}{space 1}   -8.73{col 50}{space 3}0.000{col 58}{space 4} -1.02968{col 71}{space 3}-.6520003
{txt}{space 16} {c |}
postsub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .8844289{col 30}{space 2} .1514362{col 41}{space 1}    5.84{col 50}{space 3}0.000{col 58}{space 4} .5875561{col 71}{space 3} 1.181302
{txt}{space 16} {c |}
{space 5}1.postsub2c {c |}{col 18}{res}{space 2} .0476555{col 30}{space 2} .1022322{col 41}{space 1}    0.47{col 50}{space 3}0.641{col 58}{space 4}-.1527586{col 71}{space 3} .2480697
{txt}{space 16} {c |}
postsub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0826108{col 30}{space 2} .1376811{col 41}{space 1}   -0.60{col 50}{space 3}0.549{col 58}{space 4}-.3525183{col 71}{space 3} .1872966
{txt}{space 16} {c |}
{space 5}1.postsub3c {c |}{col 18}{res}{space 2}-.4024617{col 30}{space 2} .1103003{col 41}{space 1}   -3.65{col 50}{space 3}0.000{col 58}{space 4}-.6186924{col 71}{space 3} -.186231
{txt}{space 16} {c |}
postsub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .3693948{col 30}{space 2} .1529591{col 41}{space 1}    2.41{col 50}{space 3}0.016{col 58}{space 4} .0695365{col 71}{space 3} .6692531
{txt}{space 16} {c |}
{space 5}1.postsub4c {c |}{col 18}{res}{space 2} .9816675{col 30}{space 2} .1122374{col 41}{space 1}    8.75{col 50}{space 3}0.000{col 58}{space 4} .7616393{col 71}{space 3} 1.201696
{txt}{space 16} {c |}
postsub4c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-1.366631{col 30}{space 2} .1643046{col 41}{space 1}   -8.32{col 50}{space 3}0.000{col 58}{space 4}-1.688731{col 71}{space 3}-1.044531
{txt}{space 16} {c |}
{space 5}1.postsub5c {c |}{col 18}{res}{space 2}-.5909462{col 30}{space 2} .1072711{col 41}{space 1}   -5.51{col 50}{space 3}0.000{col 58}{space 4}-.8012385{col 71}{space 3}-.3806539
{txt}{space 16} {c |}
postsub5c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}  .504523{col 30}{space 2} .1448656{col 41}{space 1}    3.48{col 50}{space 3}0.001{col 58}{space 4} .2205312{col 71}{space 3} .7885148
{txt}{space 16} {c |}
{space 5}1.postsub6c {c |}{col 18}{res}{space 2} .0883993{col 30}{space 2} .1113581{col 41}{space 1}    0.79{col 50}{space 3}0.427{col 58}{space 4}-.1299052{col 71}{space 3} .3067037
{txt}{space 16} {c |}
postsub6c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}  .062981{col 30}{space 2} .1529078{col 41}{space 1}    0.41{col 50}{space 3}0.680{col 58}{space 4}-.2367767{col 71}{space 3} .3627386
{txt}{space 16} {c |}
{space 5}1.postsub7c {c |}{col 18}{res}{space 2}-.0288679{col 30}{space 2}  .104903{col 41}{space 1}   -0.28{col 50}{space 3}0.783{col 58}{space 4}-.2345178{col 71}{space 3}  .176782
{txt}{space 16} {c |}
postsub7c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0880127{col 30}{space 2} .1506574{col 41}{space 1}   -0.58{col 50}{space 3}0.559{col 58}{space 4}-.3833586{col 71}{space 3} .2073333
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0044742{col 30}{space 2} .0006692{col 41}{space 1}   -6.69{col 50}{space 3}0.000{col 58}{space 4}-.0057862{col 71}{space 3}-.0031623
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000454{col 30}{space 2} 8.77e-06{col 41}{space 1}    5.18{col 50}{space 3}0.000{col 58}{space 4} .0000282{col 71}{space 3} .0000626
{txt}{space 11}_cons {c |}{col 18}{res}{space 2} .0469398{col 30}{space 2} .0099519{col 41}{space 1}    4.72{col 50}{space 3}0.000{col 58}{space 4} .0274302{col 71}{space 3} .0664493
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}    c#c.date{col 14}{c |}{space 1}        7{col 27}{space 1}        0{col 39}{result}{space 1}        7{col 53}{text}?{col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. 
. 
.                 ***Program, preshift and postshift effects (October, two pre-subsidy months, two post-subsidy months)                                                                                                                                             
. 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1))
>                                         (preshift:      1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*(1+exp(_b[1.postsub3c]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])*exp(_b[1.postsub5c])*(1+exp(_b[1.postsub6c]))-2)), post;

     {txt}program: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1)
    {txt}preshift: {res}1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*(1+exp(_b[1.postsub3c]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])*exp(_b[1.postsub5c])*(1+exp(_b[1.postsub6c]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .8122443{col 26}{space 2} .3481767{col 37}{space 1}    2.33{col 46}{space 3}0.020{col 54}{space 4} .1298306{col 67}{space 3} 1.494658
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.1527495{col 26}{space 2} .1484627{col 37}{space 1}   -1.03{col 46}{space 3}0.304{col 54}{space 4}-.4437311{col 67}{space 3} .1382321
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .0500061{col 26}{space 2} .2085009{col 37}{space 1}    0.24{col 46}{space 3}0.810{col 54}{space 4}-.3586481{col 67}{space 3} .4586603
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit        cr              
{txt}delimiter now cr
{com}.                 
.                 ***Net program effect, October
.                 nlcom           _b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift]    

       {txt}_nl_1: {res}_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .6067575{col 26}{space 2} 1.006011{col 37}{space 1}    0.60{col 46}{space 3}0.546{col 54}{space 4}-1.364989{col 67}{space 3} 2.578504
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Program cost, October
.                 nlcom           1000*634707/((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)

       {txt}_nl_1: {res}1000*634707/((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 266.9257{col 26}{space 2} 442.5661{col 37}{space 1}    0.60{col 46}{space 3}0.546{col 54}{space 4}-600.4879{col 67}{space 3} 1134.339
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
.                 ***Energy savings, October
.                 nlcom           ((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)/1000

       {txt}_nl_1: {res}((_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift])*2825.515*14*99.07)/1000

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 2377.842{col 26}{space 2} 3942.491{col 37}{space 1}    0.60{col 46}{space 3}0.546{col 54}{space 4}-5349.299{col 67}{space 3} 10104.98
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
. ***UNIT SALES, SUBSIDIZED (response above and below price median)
. 
. reghdfe dlogunits i.presub3c##ib1.treatc##ib1.medprice i.presub2c##ib1.treatc##ib1.medprice i.presub1c##ib1.treatc##ib1.medprice i.sub1c##ib1.treatc##ib1.medprice i.postsub1c##ib1.treatc##ib1.medprice i.postsub2c##ib1.treatc##ib1.medprice i.postsub3c##ib1.treatc##ib1.medprice i.postsub4c##ib1.treatc##ib1.medprice i.postsub5c##ib1.treatc##ib1.medprice i.postsub6c##ib1.treatc##ib1.medprice  i.postsub7c##ib1.treatc##ib1.medprice mage mage2  if country!="Hungary" , absorb (id2 cmt) cluster(id)
{res}{txt}(dropped 98132 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treatc#0bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{txt}note: 0.medprice omitted because of collinearity
{txt}note: 0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.presub3c#0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.presub2c#0.medprice omitted because of collinearity
{txt}note: 1.presub2c#0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.presub1c#0.medprice omitted because of collinearity
{txt}note: 1.presub1c#0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.sub1c#0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.postsub1c#0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.postsub2c#0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.postsub3c#0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.postsub4c#0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.postsub5c#0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.postsub6c#0.treatc#0.medprice omitted because of collinearity
{txt}note: 1.postsub7c#0.treatc#0.medprice omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 2 HDFE groups{col 51}F({res}  33{txt},{res}   5680{txt}){col 67}= {res}     12.48
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4790
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0822
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0028
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.7121

{txt}{ralign 91:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}                dlogunits{col 27}{c |} Coefficient{col 39}  std. err.{col 51}      t{col 59}   P>|t|{col 67}     [95% con{col 80}f. interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.presub3c {c |}{col 27}{res}{space 2} -.019217{col 39}{space 2} .1262973{col 50}{space 1}   -0.15{col 59}{space 3}0.879{col 67}{space 4}-.2668079{col 80}{space 3} .2283738
{txt}{space 17}0.treatc {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 10}presub3c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.2784774{col 39}{space 2} .1289439{col 50}{space 1}   -2.16{col 59}{space 3}0.031{col 67}{space 4}-.5312567{col 80}{space 3} -.025698
{txt}{space 25} {c |}
{space 15}0.medprice {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 8}presub3c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}  .280107{col 39}{space 2} .1123256{col 50}{space 1}    2.49{col 59}{space 3}0.013{col 67}{space 4}  .059906{col 80}{space 3}  .500308
{txt}{space 25} {c |}
{space 10}treatc#medprice {c |}
{space 21}0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 21}0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 1}presub3c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 15}1.presub2c {c |}{col 27}{res}{space 2}-.0432883{col 39}{space 2} .1144645{col 50}{space 1}   -0.38{col 59}{space 3}0.705{col 67}{space 4}-.2676825{col 80}{space 3} .1811059
{txt}{space 25} {c |}
{space 10}presub2c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}  .250017{col 39}{space 2} .1602884{col 50}{space 1}    1.56{col 59}{space 3}0.119{col 67}{space 4}-.0642095{col 80}{space 3} .5642435
{txt}{space 25} {c |}
{space 8}presub2c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 1}presub2c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 1 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 15}1.presub1c {c |}{col 27}{res}{space 2}-.0758536{col 39}{space 2} .1125623{col 50}{space 1}   -0.67{col 59}{space 3}0.500{col 67}{space 4}-.2965187{col 80}{space 3} .1448116
{txt}{space 25} {c |}
{space 10}presub1c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0762078{col 39}{space 2} .1491046{col 50}{space 1}   -0.51{col 59}{space 3}0.609{col 67}{space 4}-.3685097{col 80}{space 3} .2160942
{txt}{space 25} {c |}
{space 8}presub1c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 1}presub1c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 1 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 18}1.sub1c {c |}{col 27}{res}{space 2}   .91679{col 39}{space 2}  .097636{col 50}{space 1}    9.39{col 59}{space 3}0.000{col 67}{space 4} .7253863{col 80}{space 3} 1.108194
{txt}{space 25} {c |}
{space 13}sub1c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.5710858{col 39}{space 2} .2487637{col 50}{space 1}   -2.30{col 59}{space 3}0.022{col 67}{space 4}-1.058758{col 80}{space 3} -.083414
{txt}{space 25} {c |}
{space 11}sub1c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0186036{col 39}{space 2} .2318497{col 50}{space 1}    0.08{col 59}{space 3}0.936{col 67}{space 4}-.4359103{col 80}{space 3} .4731174
{txt}{space 25} {c |}
{space 4}sub1c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub1c {c |}{col 27}{res}{space 2}-.8401779{col 39}{space 2}  .096553{col 50}{space 1}   -8.70{col 59}{space 3}0.000{col 67}{space 4}-1.029459{col 80}{space 3}-.6508972
{txt}{space 25} {c |}
{space 9}postsub1c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .9867202{col 39}{space 2} .6559265{col 50}{space 1}    1.50{col 59}{space 3}0.133{col 67}{space 4}-.2991461{col 80}{space 3} 2.272587
{txt}{space 25} {c |}
{space 7}postsub1c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.1154893{col 39}{space 2} .6500374{col 50}{space 1}   -0.18{col 59}{space 3}0.859{col 67}{space 4}-1.389811{col 80}{space 3} 1.158832
{txt}{space 25} {c |}
postsub1c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub2c {c |}{col 27}{res}{space 2} .0532668{col 39}{space 2} .1065483{col 50}{space 1}    0.50{col 59}{space 3}0.617{col 67}{space 4}-.1556086{col 80}{space 3} .2621421
{txt}{space 25} {c |}
{space 9}postsub2c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0558004{col 39}{space 2}   .20549{col 50}{space 1}    0.27{col 59}{space 3}0.786{col 67}{space 4}-.3470384{col 80}{space 3} .4586393
{txt}{space 25} {c |}
{space 7}postsub2c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.1572429{col 39}{space 2} .2034827{col 50}{space 1}   -0.77{col 59}{space 3}0.440{col 67}{space 4}-.5561467{col 80}{space 3} .2416608
{txt}{space 25} {c |}
postsub2c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub3c {c |}{col 27}{res}{space 2}-.3595836{col 39}{space 2} .1097836{col 50}{space 1}   -3.28{col 59}{space 3}0.001{col 67}{space 4}-.5748015{col 80}{space 3}-.1443658
{txt}{space 25} {c |}
{space 9}postsub3c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .8782899{col 39}{space 2} .4710739{col 50}{space 1}    1.86{col 59}{space 3}0.062{col 67}{space 4}-.0451946{col 80}{space 3} 1.801775
{txt}{space 25} {c |}
{space 7}postsub3c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.5652316{col 39}{space 2} .4668655{col 50}{space 1}   -1.21{col 59}{space 3}0.226{col 67}{space 4}-1.480466{col 80}{space 3}  .350003
{txt}{space 25} {c |}
postsub3c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub4c {c |}{col 27}{res}{space 2} .9590542{col 39}{space 2} .1195602{col 50}{space 1}    8.02{col 59}{space 3}0.000{col 67}{space 4} .7246707{col 80}{space 3} 1.193438
{txt}{space 25} {c |}
{space 9}postsub4c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-1.536821{col 39}{space 2} .2772885{col 50}{space 1}   -5.54{col 59}{space 3}0.000{col 67}{space 4}-2.080412{col 80}{space 3}-.9932292
{txt}{space 25} {c |}
{space 7}postsub4c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1786709{col 39}{space 2} .2682521{col 50}{space 1}    0.67{col 59}{space 3}0.505{col 67}{space 4}-.3472056{col 80}{space 3} .7045474
{txt}{space 25} {c |}
postsub4c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub5c {c |}{col 27}{res}{space 2}-.5871651{col 39}{space 2} .1147583{col 50}{space 1}   -5.12{col 59}{space 3}0.000{col 67}{space 4}-.8121352{col 80}{space 3} -.362195
{txt}{space 25} {c |}
{space 9}postsub5c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .5367644{col 39}{space 2} .2605844{col 50}{space 1}    2.06{col 59}{space 3}0.039{col 67}{space 4} .0259195{col 80}{space 3} 1.047609
{txt}{space 25} {c |}
{space 7}postsub5c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0495318{col 39}{space 2}  .257696{col 50}{space 1}   -0.19{col 59}{space 3}0.848{col 67}{space 4}-.5547142{col 80}{space 3} .4556507
{txt}{space 25} {c |}
postsub5c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub6c {c |}{col 27}{res}{space 2}  .056363{col 39}{space 2} .1223847{col 50}{space 1}    0.46{col 59}{space 3}0.645{col 67}{space 4}-.1835577{col 80}{space 3} .2962838
{txt}{space 25} {c |}
{space 9}postsub6c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.1124229{col 39}{space 2} .2367171{col 50}{space 1}   -0.47{col 59}{space 3}0.635{col 67}{space 4}-.5764787{col 80}{space 3} .3516329
{txt}{space 25} {c |}
{space 7}postsub6c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .1939467{col 39}{space 2} .2367455{col 50}{space 1}    0.82{col 59}{space 3}0.413{col 67}{space 4}-.2701648{col 80}{space 3} .6580582
{txt}{space 25} {c |}
postsub6c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub7c {c |}{col 27}{res}{space 2}-.0059905{col 39}{space 2} .1146735{col 50}{space 1}   -0.05{col 59}{space 3}0.958{col 67}{space 4}-.2307944{col 80}{space 3} .2188134
{txt}{space 25} {c |}
{space 9}postsub7c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0459877{col 39}{space 2} .2259102{col 50}{space 1}    0.20{col 59}{space 3}0.839{col 67}{space 4}-.3968825{col 80}{space 3} .4888579
{txt}{space 25} {c |}
{space 7}postsub7c#medprice {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} -.170586{col 39}{space 2} .2195177{col 50}{space 1}   -0.78{col 59}{space 3}0.437{col 67}{space 4}-.6009244{col 80}{space 3} .2597525
{txt}{space 25} {c |}
postsub7c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 21}mage {c |}{col 27}{res}{space 2}-.0044286{col 39}{space 2} .0006521{col 50}{space 1}   -6.79{col 59}{space 3}0.000{col 67}{space 4}-.0057069{col 80}{space 3}-.0031502
{txt}{space 20}mage2 {c |}{col 27}{res}{space 2} .0000451{col 39}{space 2} 8.66e-06{col 50}{space 1}    5.21{col 59}{space 3}0.000{col 67}{space 4} .0000281{col 80}{space 3} .0000621
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} .0461545{col 39}{space 2} .0096354{col 50}{space 1}    4.79{col 59}{space 3}0.000{col 67}{space 4} .0272654{col 80}{space 3} .0650436
{txt}{hline 26}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_above
{txt}
{com}. 
. reghdfe dlogunits i.presub3c##ib1.treatc##ib0.medprice i.presub2c##ib1.treatc##ib0.medprice i.presub1c##ib1.treatc##ib0.medprice i.sub1c##ib1.treatc##ib0.medprice i.postsub1c##ib1.treatc##ib0.medprice i.postsub2c##ib1.treatc##ib0.medprice i.postsub3c##ib1.treatc##ib0.medprice i.postsub4c##ib1.treatc##ib0.medprice i.postsub5c##ib1.treatc##ib0.medprice i.postsub6c##ib1.treatc##ib0.medprice  i.postsub7c##ib1.treatc##ib0.medprice mage mage2  if country!="Hungary" , absorb (id2 cmt) cluster(id)
{res}{txt}(dropped 98132 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.medprice{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{txt}note: 1.medprice omitted because of collinearity
{txt}note: 1.presub2c#1.medprice omitted because of collinearity
{txt}note: 1.presub1c#1.medprice omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 2 HDFE groups{col 51}F({res}  33{txt},{res}   5680{txt}){col 67}= {res}     12.48
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4790
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0822
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0028
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.7121

{txt}{ralign 91:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 26}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 27}{c |}{col 39}    Robust
{col 1}                dlogunits{col 27}{c |} Coefficient{col 39}  std. err.{col 51}      t{col 59}   P>|t|{col 67}     [95% con{col 80}f. interval]
{hline 26}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}1.presub3c {c |}{col 27}{res}{space 2}   .26089{col 39}{space 2}  .069248{col 50}{space 1}    3.77{col 59}{space 3}0.000{col 67}{space 4} .1251375{col 80}{space 3} .3966425
{txt}{space 17}0.treatc {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 10}presub3c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.2784774{col 39}{space 2} .1289439{col 50}{space 1}   -2.16{col 59}{space 3}0.031{col 67}{space 4}-.5312567{col 80}{space 3} -.025698
{txt}{space 25} {c |}
{space 15}1.medprice {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 8}presub3c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} -.280107{col 39}{space 2} .1123256{col 50}{space 1}   -2.49{col 59}{space 3}0.013{col 67}{space 4} -.500308{col 80}{space 3} -.059906
{txt}{space 25} {c |}
{space 10}treatc#medprice {c |}
{space 21}0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 1}presub3c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 15}1.presub2c {c |}{col 27}{res}{space 2}-.0432883{col 39}{space 2} .1144645{col 50}{space 1}   -0.38{col 59}{space 3}0.705{col 67}{space 4}-.2676825{col 80}{space 3} .1811059
{txt}{space 25} {c |}
{space 10}presub2c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}  .250017{col 39}{space 2} .1602884{col 50}{space 1}    1.56{col 59}{space 3}0.119{col 67}{space 4}-.0642095{col 80}{space 3} .5642435
{txt}{space 25} {c |}
{space 8}presub2c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 1}presub2c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 1 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 15}1.presub1c {c |}{col 27}{res}{space 2}-.0758536{col 39}{space 2} .1125623{col 50}{space 1}   -0.67{col 59}{space 3}0.500{col 67}{space 4}-.2965187{col 80}{space 3} .1448116
{txt}{space 25} {c |}
{space 10}presub1c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.0762078{col 39}{space 2} .1491046{col 50}{space 1}   -0.51{col 59}{space 3}0.609{col 67}{space 4}-.3685097{col 80}{space 3} .2160942
{txt}{space 25} {c |}
{space 8}presub1c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (omitted)
{space 25} {c |}
{space 1}presub1c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 1 0  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 18}1.sub1c {c |}{col 27}{res}{space 2} .9353936{col 39}{space 2} .2142773{col 50}{space 1}    4.37{col 59}{space 3}0.000{col 67}{space 4} .5153283{col 80}{space 3} 1.355459
{txt}{space 25} {c |}
{space 13}sub1c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.5710858{col 39}{space 2} .2487637{col 50}{space 1}   -2.30{col 59}{space 3}0.022{col 67}{space 4}-1.058758{col 80}{space 3} -.083414
{txt}{space 25} {c |}
{space 11}sub1c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.0186036{col 39}{space 2} .2318497{col 50}{space 1}   -0.08{col 59}{space 3}0.936{col 67}{space 4}-.4731174{col 80}{space 3} .4359103
{txt}{space 25} {c |}
{space 4}sub1c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub1c {c |}{col 27}{res}{space 2}-.9556672{col 39}{space 2}  .645479{col 50}{space 1}   -1.48{col 59}{space 3}0.139{col 67}{space 4}-2.221052{col 80}{space 3}  .309718
{txt}{space 25} {c |}
{space 9}postsub1c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .9867202{col 39}{space 2} .6559265{col 50}{space 1}    1.50{col 59}{space 3}0.133{col 67}{space 4}-.2991461{col 80}{space 3} 2.272587
{txt}{space 25} {c |}
{space 7}postsub1c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .1154893{col 39}{space 2} .6500374{col 50}{space 1}    0.18{col 59}{space 3}0.859{col 67}{space 4}-1.158832{col 80}{space 3} 1.389811
{txt}{space 25} {c |}
postsub1c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub2c {c |}{col 27}{res}{space 2}-.1039762{col 39}{space 2} .1836306{col 50}{space 1}   -0.57{col 59}{space 3}0.571{col 67}{space 4}-.4639623{col 80}{space 3} .2560099
{txt}{space 25} {c |}
{space 9}postsub2c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0558004{col 39}{space 2}   .20549{col 50}{space 1}    0.27{col 59}{space 3}0.786{col 67}{space 4}-.3470384{col 80}{space 3} .4586393
{txt}{space 25} {c |}
{space 7}postsub2c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .1572429{col 39}{space 2} .2034827{col 50}{space 1}    0.77{col 59}{space 3}0.440{col 67}{space 4}-.2416608{col 80}{space 3} .5561467
{txt}{space 25} {c |}
postsub2c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub3c {c |}{col 27}{res}{space 2}-.9248152{col 39}{space 2} .4591455{col 50}{space 1}   -2.01{col 59}{space 3}0.044{col 67}{space 4}-1.824916{col 80}{space 3}-.0247148
{txt}{space 25} {c |}
{space 9}postsub3c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .8782899{col 39}{space 2} .4710739{col 50}{space 1}    1.86{col 59}{space 3}0.062{col 67}{space 4}-.0451946{col 80}{space 3} 1.801775
{txt}{space 25} {c |}
{space 7}postsub3c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .5652316{col 39}{space 2} .4668655{col 50}{space 1}    1.21{col 59}{space 3}0.226{col 67}{space 4} -.350003{col 80}{space 3} 1.480466
{txt}{space 25} {c |}
postsub3c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub4c {c |}{col 27}{res}{space 2} 1.137725{col 39}{space 2} .2499897{col 50}{space 1}    4.55{col 59}{space 3}0.000{col 67}{space 4} .6476499{col 80}{space 3}   1.6278
{txt}{space 25} {c |}
{space 9}postsub4c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-1.536821{col 39}{space 2} .2772885{col 50}{space 1}   -5.54{col 59}{space 3}0.000{col 67}{space 4}-2.080412{col 80}{space 3}-.9932292
{txt}{space 25} {c |}
{space 7}postsub4c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.1786709{col 39}{space 2} .2682521{col 50}{space 1}   -0.67{col 59}{space 3}0.505{col 67}{space 4}-.7045474{col 80}{space 3} .3472056
{txt}{space 25} {c |}
postsub4c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub5c {c |}{col 27}{res}{space 2}-.6366968{col 39}{space 2} .2418233{col 50}{space 1}   -2.63{col 59}{space 3}0.008{col 67}{space 4}-1.110763{col 80}{space 3}-.1626309
{txt}{space 25} {c |}
{space 9}postsub5c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .5367644{col 39}{space 2} .2605844{col 50}{space 1}    2.06{col 59}{space 3}0.039{col 67}{space 4} .0259195{col 80}{space 3} 1.047609
{txt}{space 25} {c |}
{space 7}postsub5c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2} .0495318{col 39}{space 2}  .257696{col 50}{space 1}    0.19{col 59}{space 3}0.848{col 67}{space 4}-.4556507{col 80}{space 3} .5547142
{txt}{space 25} {c |}
postsub5c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub6c {c |}{col 27}{res}{space 2} .2503098{col 39}{space 2} .2123528{col 50}{space 1}    1.18{col 59}{space 3}0.239{col 67}{space 4}-.1659827{col 80}{space 3} .6666023
{txt}{space 25} {c |}
{space 9}postsub6c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2}-.1124229{col 39}{space 2} .2367171{col 50}{space 1}   -0.47{col 59}{space 3}0.635{col 67}{space 4}-.5764787{col 80}{space 3} .3516329
{txt}{space 25} {c |}
{space 7}postsub6c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}-.1939467{col 39}{space 2} .2367455{col 50}{space 1}   -0.82{col 59}{space 3}0.413{col 67}{space 4}-.6580582{col 80}{space 3} .2701648
{txt}{space 25} {c |}
postsub6c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 14}1.postsub7c {c |}{col 27}{res}{space 2}-.1765764{col 39}{space 2} .1985152{col 50}{space 1}   -0.89{col 59}{space 3}0.374{col 67}{space 4} -.565742{col 80}{space 3} .2125892
{txt}{space 25} {c |}
{space 9}postsub7c#treatc {c |}
{space 21}1 0  {c |}{col 27}{res}{space 2} .0459877{col 39}{space 2} .2259102{col 50}{space 1}    0.20{col 59}{space 3}0.839{col 67}{space 4}-.3968825{col 80}{space 3} .4888579
{txt}{space 25} {c |}
{space 7}postsub7c#medprice {c |}
{space 21}1 1  {c |}{col 27}{res}{space 2}  .170586{col 39}{space 2} .2195177{col 50}{space 1}    0.78{col 59}{space 3}0.437{col 67}{space 4}-.2597525{col 80}{space 3} .6009244
{txt}{space 25} {c |}
postsub7c#treatc#medprice {c |}
{space 19}0 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 19}1 0 1  {c |}{col 27}{res}{space 2}        0{col 39}{txt}  (empty)
{space 25} {c |}
{space 21}mage {c |}{col 27}{res}{space 2}-.0044286{col 39}{space 2} .0006521{col 50}{space 1}   -6.79{col 59}{space 3}0.000{col 67}{space 4}-.0057069{col 80}{space 3}-.0031502
{txt}{space 20}mage2 {c |}{col 27}{res}{space 2} .0000451{col 39}{space 2} 8.66e-06{col 50}{space 1}    5.21{col 59}{space 3}0.000{col 67}{space 4} .0000281{col 80}{space 3} .0000621
{txt}{space 20}_cons {c |}{col 27}{res}{space 2} .0461545{col 39}{space 2} .0096354{col 50}{space 1}    4.79{col 59}{space 3}0.000{col 67}{space 4} .0272654{col 80}{space 3} .0650436
{txt}{hline 26}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subu_below
{txt}
{com}. 
. esttab   subu subu_above subu_below , se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) keep(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) 
{res}
{txt}{hline 60}
{txt}                      (1)             (2)             (3)   
{txt}                     subu      subu_above      subu_below   
{txt}{hline 60}
{txt}1.presub3c  {res}       -0.016          -0.019           0.261***{txt}
            {res} {ralign 12:{txt:(}0.125{txt:)}}    {ralign 12:{txt:(}0.126{txt:)}}    {ralign 12:{txt:(}0.069{txt:)}}   {txt}
{txt}1.presub2c  {res}       -0.043          -0.043          -0.043   {txt}
            {res} {ralign 12:{txt:(}0.114{txt:)}}    {ralign 12:{txt:(}0.114{txt:)}}    {ralign 12:{txt:(}0.114{txt:)}}   {txt}
{txt}1.presub1c  {res}       -0.076          -0.076          -0.076   {txt}
            {res} {ralign 12:{txt:(}0.113{txt:)}}    {ralign 12:{txt:(}0.113{txt:)}}    {ralign 12:{txt:(}0.113{txt:)}}   {txt}
{txt}1.sub1c     {res}        0.918***        0.917***        0.935***{txt}
            {res} {ralign 12:{txt:(}0.094{txt:)}}    {ralign 12:{txt:(}0.098{txt:)}}    {ralign 12:{txt:(}0.214{txt:)}}   {txt}
{txt}1.postsub1c {res}       -0.844***       -0.840***       -0.956   {txt}
            {res} {ralign 12:{txt:(}0.096{txt:)}}    {ralign 12:{txt:(}0.097{txt:)}}    {ralign 12:{txt:(}0.645{txt:)}}   {txt}
{txt}1.postsub2c {res}        0.044           0.053          -0.104   {txt}
            {res} {ralign 12:{txt:(}0.102{txt:)}}    {ralign 12:{txt:(}0.107{txt:)}}    {ralign 12:{txt:(}0.184{txt:)}}   {txt}
{txt}1.postsub3c {res}       -0.405***       -0.360***       -0.925** {txt}
            {res} {ralign 12:{txt:(}0.110{txt:)}}    {ralign 12:{txt:(}0.110{txt:)}}    {ralign 12:{txt:(}0.459{txt:)}}   {txt}
{txt}1.postsub4c {res}        0.978***        0.959***        1.138***{txt}
            {res} {ralign 12:{txt:(}0.112{txt:)}}    {ralign 12:{txt:(}0.120{txt:)}}    {ralign 12:{txt:(}0.250{txt:)}}   {txt}
{txt}1.postsub5c {res}       -0.594***       -0.587***       -0.637***{txt}
            {res} {ralign 12:{txt:(}0.107{txt:)}}    {ralign 12:{txt:(}0.115{txt:)}}    {ralign 12:{txt:(}0.242{txt:)}}   {txt}
{txt}1.postsub6c {res}        0.085           0.056           0.250   {txt}
            {res} {ralign 12:{txt:(}0.111{txt:)}}    {ralign 12:{txt:(}0.122{txt:)}}    {ralign 12:{txt:(}0.212{txt:)}}   {txt}
{txt}1.postsub7c {res}       -0.033          -0.006          -0.177   {txt}
            {res} {ralign 12:{txt:(}0.105{txt:)}}    {ralign 12:{txt:(}0.115{txt:)}}    {ralign 12:{txt:(}0.199{txt:)}}   {txt}
{txt}{hline 60}
{txt}N           {res}       213351          213351          213351   {txt}
{txt}{hline 60}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subu subu_above subu_below  using "R:\WSV2\TBu_BMa\Subsidies Project\Results\HR_15_medianprice.tex" ,replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) keep(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c)           
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\HR_15_medianprice.tex"'})

{com}. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.                 
. ***UNIT SALES, NON-SUBSIDIZED
. reghdfe dlogunits i.presub3c##i.treatc i.presub2c##i.treatc i.presub1c##i.treatc i.sub1c##i.treatc i.postsub1c##i.treatc i.postsub2c##i.treatc i.postsub3c##i.treatc i.postsub4c##i.treatc i.postsub5c##i.treatc i.postsub6c##i.treatc i.postsub7c##i.treatc mage mage2  if country!="Hungary" , absorb (id2 cmt) cluster(id)
{res}{txt}(dropped 98132 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 1.treatc omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 2 HDFE groups{col 51}F({res}  24{txt},{res}   5680{txt}){col 67}= {res}     13.79
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4790
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0823
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0028
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.7121

{txt}{ralign 82:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3c {c |}{col 18}{res}{space 2}-.0175888{col 30}{space 2} .1087715{col 41}{space 1}   -0.16{col 50}{space 3}0.872{col 58}{space 4}-.2308225{col 71}{space 3} .1956448
{txt}{space 8}1.treatc {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0017608{col 30}{space 2}  .165837{col 41}{space 1}    0.01{col 50}{space 3}0.992{col 58}{space 4}-.3233431{col 71}{space 3} .3268647
{txt}{space 16} {c |}
{space 6}1.presub2c {c |}{col 18}{res}{space 2} .2067292{col 30}{space 2} .1122031{col 41}{space 1}    1.84{col 50}{space 3}0.065{col 58}{space 4}-.0132318{col 71}{space 3} .4266901
{txt}{space 16} {c |}
{space 1}presub2c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.2500181{col 30}{space 2} .1602849{col 41}{space 1}   -1.56{col 50}{space 3}0.119{col 58}{space 4}-.5642377{col 71}{space 3} .0642016
{txt}{space 16} {c |}
{space 6}1.presub1c {c |}{col 18}{res}{space 2}-.1520607{col 30}{space 2} .0977851{col 41}{space 1}   -1.56{col 50}{space 3}0.120{col 58}{space 4}-.3437567{col 71}{space 3} .0396354
{txt}{space 16} {c |}
{space 1}presub1c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0762052{col 30}{space 2} .1491013{col 41}{space 1}    0.51{col 50}{space 3}0.609{col 58}{space 4}-.2160902{col 71}{space 3} .3685007
{txt}{space 16} {c |}
{space 9}1.sub1c {c |}{col 18}{res}{space 2} .3643073{col 30}{space 2}   .12637{col 41}{space 1}    2.88{col 50}{space 3}0.004{col 58}{space 4} .1165738{col 71}{space 3} .6120408
{txt}{space 16} {c |}
{space 4}sub1c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .5534976{col 30}{space 2} .1572098{col 41}{space 1}    3.52{col 50}{space 3}0.000{col 58}{space 4} .2453064{col 71}{space 3} .8616888
{txt}{space 16} {c |}
{space 5}1.postsub1c {c |}{col 18}{res}{space 2} .0310522{col 30}{space 2} .1166055{col 41}{space 1}    0.27{col 50}{space 3}0.790{col 58}{space 4} -.197539{col 71}{space 3} .2596434
{txt}{space 16} {c |}
postsub1c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.8749515{col 30}{space 2} .1512305{col 41}{space 1}   -5.79{col 50}{space 3}0.000{col 58}{space 4}-1.171421{col 71}{space 3}-.5784821
{txt}{space 16} {c |}
{space 5}1.postsub2c {c |}{col 18}{res}{space 2}-.0481763{col 30}{space 2} .0921783{col 41}{space 1}   -0.52{col 50}{space 3}0.601{col 58}{space 4}-.2288809{col 71}{space 3} .1325284
{txt}{space 16} {c |}
postsub2c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0926652{col 30}{space 2} .1376459{col 41}{space 1}    0.67{col 50}{space 3}0.501{col 58}{space 4}-.1771733{col 71}{space 3} .3625038
{txt}{space 16} {c |}
{space 5}1.postsub3c {c |}{col 18}{res}{space 2}-.0465231{col 30}{space 2} .1053482{col 41}{space 1}   -0.44{col 50}{space 3}0.659{col 58}{space 4}-.2530458{col 71}{space 3} .1599995
{txt}{space 16} {c |}
postsub3c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.3588293{col 30}{space 2} .1525221{col 41}{space 1}   -2.35{col 50}{space 3}0.019{col 58}{space 4}-.6578308{col 71}{space 3}-.0598278
{txt}{space 16} {c |}
{space 5}1.postsub4c {c |}{col 18}{res}{space 2}-.3990953{col 30}{space 2}  .119982{col 41}{space 1}   -3.33{col 50}{space 3}0.001{col 58}{space 4}-.6343059{col 71}{space 3}-.1638847
{txt}{space 16} {c |}
postsub4c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} 1.377204{col 30}{space 2} .1643201{col 41}{space 1}    8.38{col 50}{space 3}0.000{col 58}{space 4} 1.055074{col 71}{space 3} 1.699334
{txt}{space 16} {c |}
{space 5}1.postsub5c {c |}{col 18}{res}{space 2}-.0999333{col 30}{space 2} .0970712{col 41}{space 1}   -1.03{col 50}{space 3}0.303{col 58}{space 4}  -.29023{col 71}{space 3} .0903634
{txt}{space 16} {c |}
postsub5c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} -.494429{col 30}{space 2} .1446831{col 41}{space 1}   -3.42{col 50}{space 3}0.001{col 58}{space 4}-.7780632{col 71}{space 3}-.2107949
{txt}{space 16} {c |}
{space 5}1.postsub6c {c |}{col 18}{res}{space 2} .1378864{col 30}{space 2} .1045976{col 41}{space 1}    1.32{col 50}{space 3}0.187{col 58}{space 4}-.0671648{col 71}{space 3} .3429375
{txt}{space 16} {c |}
postsub6c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0530725{col 30}{space 2} .1527426{col 41}{space 1}   -0.35{col 50}{space 3}0.728{col 58}{space 4}-.3525064{col 71}{space 3} .2463614
{txt}{space 16} {c |}
{space 5}1.postsub7c {c |}{col 18}{res}{space 2}-.1305894{col 30}{space 2} .1078364{col 41}{space 1}   -1.21{col 50}{space 3}0.226{col 58}{space 4}-.3419899{col 71}{space 3} .0808111
{txt}{space 16} {c |}
postsub7c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0978999{col 30}{space 2} .1503403{col 41}{space 1}    0.65{col 50}{space 3}0.515{col 58}{space 4}-.1968244{col 71}{space 3} .3926242
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2} -.004428{col 30}{space 2} .0006523{col 41}{space 1}   -6.79{col 50}{space 3}0.000{col 58}{space 4}-.0057066{col 71}{space 3}-.0031493
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000451{col 30}{space 2} 8.66e-06{col 41}{space 1}    5.21{col 50}{space 3}0.000{col 58}{space 4} .0000281{col 71}{space 3} .0000621
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}  .046126{col 30}{space 2} .0096358{col 41}{space 1}    4.79{col 50}{space 3}0.000{col 58}{space 4} .0272361{col 71}{space 3} .0650159
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store nonsubu
{txt}
{com}. 
.         
.                 ***Program, preshift and postshift effects (June, two pre-subsidy months, one post-subsidy month)
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)) 
>                                         (preshift:      1/2*(exp(_b[1.presub1c])*(1+exp(_b[1.presub2c]))-2))
>                                         (postshift:     1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])-1)), post;

     {txt}program: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)
    {txt}preshift: {res}1/2*(exp(_b[1.presub1c])*(1+exp(_b[1.presub2c]))-2)
   {txt}postshift: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])-1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2} .5204036{col 26}{space 2} .2272974{col 37}{space 1}    2.29{col 46}{space 3}0.022{col 54}{space 4} .0749088{col 67}{space 3} .9658983
{txt}{space 4}preshift {c |}{col 14}{res}{space 2}-.0424367{col 26}{space 2} .0930966{col 37}{space 1}   -0.46{col 46}{space 3}0.649{col 54}{space 4}-.2249027{col 67}{space 3} .1400293
{txt}{space 3}postshift {c |}{col 14}{res}{space 2} .5683561{col 26}{space 2}  .237908{col 37}{space 1}    2.39{col 46}{space 3}0.017{col 54}{space 4} .1020649{col 67}{space 3} 1.034647
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit        cr              
{txt}delimiter now cr
{com}.                 
.                 ***Net program effect, June
.                 nlcom           _b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift]

       {txt}_nl_1: {res}_b[program] + (2/1)*_b[preshift]+ (1/1)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} 1.003886{col 26}{space 2} .5363701{col 37}{space 1}    1.87{col 46}{space 3}0.061{col 54}{space 4}-.0473799{col 67}{space 3} 2.055152
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. 
.                 
. reghdfe dlogunits i.presub3c##i.treatc i.presub2c##i.treatc i.presub1c##i.treatc i.sub1c##i.treatc i.postsub1c##i.treatc i.postsub2c##i.treatc i.postsub3c##i.treatc i.postsub4c##i.treatc i.postsub5c##i.treatc i.postsub6c##i.treatc i.postsub7c##i.treatc  mage mage2  if country!="Hungary" , absorb (id2 cmt) cluster(id)          
{res}{txt}(dropped 98132 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 1.treatc omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 2 HDFE groups{col 51}F({res}  24{txt},{res}   5680{txt}){col 67}= {res}     13.79
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4790
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0823
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0028
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.7121

{txt}{ralign 82:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogunits{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3c {c |}{col 18}{res}{space 2}-.0175888{col 30}{space 2} .1087715{col 41}{space 1}   -0.16{col 50}{space 3}0.872{col 58}{space 4}-.2308225{col 71}{space 3} .1956448
{txt}{space 8}1.treatc {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0017608{col 30}{space 2}  .165837{col 41}{space 1}    0.01{col 50}{space 3}0.992{col 58}{space 4}-.3233431{col 71}{space 3} .3268647
{txt}{space 16} {c |}
{space 6}1.presub2c {c |}{col 18}{res}{space 2} .2067292{col 30}{space 2} .1122031{col 41}{space 1}    1.84{col 50}{space 3}0.065{col 58}{space 4}-.0132318{col 71}{space 3} .4266901
{txt}{space 16} {c |}
{space 1}presub2c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.2500181{col 30}{space 2} .1602849{col 41}{space 1}   -1.56{col 50}{space 3}0.119{col 58}{space 4}-.5642377{col 71}{space 3} .0642016
{txt}{space 16} {c |}
{space 6}1.presub1c {c |}{col 18}{res}{space 2}-.1520607{col 30}{space 2} .0977851{col 41}{space 1}   -1.56{col 50}{space 3}0.120{col 58}{space 4}-.3437567{col 71}{space 3} .0396354
{txt}{space 16} {c |}
{space 1}presub1c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0762052{col 30}{space 2} .1491013{col 41}{space 1}    0.51{col 50}{space 3}0.609{col 58}{space 4}-.2160902{col 71}{space 3} .3685007
{txt}{space 16} {c |}
{space 9}1.sub1c {c |}{col 18}{res}{space 2} .3643073{col 30}{space 2}   .12637{col 41}{space 1}    2.88{col 50}{space 3}0.004{col 58}{space 4} .1165738{col 71}{space 3} .6120408
{txt}{space 16} {c |}
{space 4}sub1c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .5534976{col 30}{space 2} .1572098{col 41}{space 1}    3.52{col 50}{space 3}0.000{col 58}{space 4} .2453064{col 71}{space 3} .8616888
{txt}{space 16} {c |}
{space 5}1.postsub1c {c |}{col 18}{res}{space 2} .0310522{col 30}{space 2} .1166055{col 41}{space 1}    0.27{col 50}{space 3}0.790{col 58}{space 4} -.197539{col 71}{space 3} .2596434
{txt}{space 16} {c |}
postsub1c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.8749515{col 30}{space 2} .1512305{col 41}{space 1}   -5.79{col 50}{space 3}0.000{col 58}{space 4}-1.171421{col 71}{space 3}-.5784821
{txt}{space 16} {c |}
{space 5}1.postsub2c {c |}{col 18}{res}{space 2}-.0481763{col 30}{space 2} .0921783{col 41}{space 1}   -0.52{col 50}{space 3}0.601{col 58}{space 4}-.2288809{col 71}{space 3} .1325284
{txt}{space 16} {c |}
postsub2c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0926652{col 30}{space 2} .1376459{col 41}{space 1}    0.67{col 50}{space 3}0.501{col 58}{space 4}-.1771733{col 71}{space 3} .3625038
{txt}{space 16} {c |}
{space 5}1.postsub3c {c |}{col 18}{res}{space 2}-.0465231{col 30}{space 2} .1053482{col 41}{space 1}   -0.44{col 50}{space 3}0.659{col 58}{space 4}-.2530458{col 71}{space 3} .1599995
{txt}{space 16} {c |}
postsub3c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.3588293{col 30}{space 2} .1525221{col 41}{space 1}   -2.35{col 50}{space 3}0.019{col 58}{space 4}-.6578308{col 71}{space 3}-.0598278
{txt}{space 16} {c |}
{space 5}1.postsub4c {c |}{col 18}{res}{space 2}-.3990953{col 30}{space 2}  .119982{col 41}{space 1}   -3.33{col 50}{space 3}0.001{col 58}{space 4}-.6343059{col 71}{space 3}-.1638847
{txt}{space 16} {c |}
postsub4c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} 1.377204{col 30}{space 2} .1643201{col 41}{space 1}    8.38{col 50}{space 3}0.000{col 58}{space 4} 1.055074{col 71}{space 3} 1.699334
{txt}{space 16} {c |}
{space 5}1.postsub5c {c |}{col 18}{res}{space 2}-.0999333{col 30}{space 2} .0970712{col 41}{space 1}   -1.03{col 50}{space 3}0.303{col 58}{space 4}  -.29023{col 71}{space 3} .0903634
{txt}{space 16} {c |}
postsub5c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} -.494429{col 30}{space 2} .1446831{col 41}{space 1}   -3.42{col 50}{space 3}0.001{col 58}{space 4}-.7780632{col 71}{space 3}-.2107949
{txt}{space 16} {c |}
{space 5}1.postsub6c {c |}{col 18}{res}{space 2} .1378864{col 30}{space 2} .1045976{col 41}{space 1}    1.32{col 50}{space 3}0.187{col 58}{space 4}-.0671648{col 71}{space 3} .3429375
{txt}{space 16} {c |}
postsub6c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0530725{col 30}{space 2} .1527426{col 41}{space 1}   -0.35{col 50}{space 3}0.728{col 58}{space 4}-.3525064{col 71}{space 3} .2463614
{txt}{space 16} {c |}
{space 5}1.postsub7c {c |}{col 18}{res}{space 2}-.1305894{col 30}{space 2} .1078364{col 41}{space 1}   -1.21{col 50}{space 3}0.226{col 58}{space 4}-.3419899{col 71}{space 3} .0808111
{txt}{space 16} {c |}
postsub7c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0978999{col 30}{space 2} .1503403{col 41}{space 1}    0.65{col 50}{space 3}0.515{col 58}{space 4}-.1968244{col 71}{space 3} .3926242
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2} -.004428{col 30}{space 2} .0006523{col 41}{space 1}   -6.79{col 50}{space 3}0.000{col 58}{space 4}-.0057066{col 71}{space 3}-.0031493
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} .0000451{col 30}{space 2} 8.66e-06{col 41}{space 1}    5.21{col 50}{space 3}0.000{col 58}{space 4} .0000281{col 71}{space 3} .0000621
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}  .046126{col 30}{space 2} .0096358{col 41}{space 1}    4.79{col 50}{space 3}0.000{col 58}{space 4} .0272361{col 71}{space 3} .0650159
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. 
.                 ***Program, preshift and postshift effects (October, two pre-subsidy months, two post-subsidy months)                                                                                                                                             
. 
.                 #delimit;
{txt}delimiter now ;
{com}.                 nlcom           (program:       1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1))
>                                         (preshift:      1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*(1+exp(_b[1.postsub3c]))-2))
>                                         (postshift:     1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])*exp(_b[1.postsub5c])*(1+exp(_b[1.postsub6c]))-2)), post;

     {txt}program: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1)
    {txt}preshift: {res}1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*(1+exp(_b[1.postsub3c]))-2)
   {txt}postshift: {res}1/2*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])*exp(_b[1.postsub5c])*(1+exp(_b[1.postsub6c]))-2)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}program {c |}{col 14}{res}{space 2}-.0428228{col 26}{space 2} .1655539{col 37}{space 1}   -0.26{col 46}{space 3}0.796{col 54}{space 4}-.3673024{col 67}{space 3} .2816569
{txt}{space 4}preshift {c |}{col 14}{res}{space 2} .4606195{col 26}{space 2} .2160648{col 37}{space 1}    2.13{col 46}{space 3}0.033{col 54}{space 4} .0371402{col 67}{space 3} .8840988
{txt}{space 3}postshift {c |}{col 14}{res}{space 2}-.0698246{col 26}{space 2} .1565175{col 37}{space 1}   -0.45{col 46}{space 3}0.656{col 54}{space 4}-.3765934{col 67}{space 3} .2369441
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                                         #delimit        cr              
{txt}delimiter now cr
{com}.                 
.                 ***Net program effect, October
.                 nlcom           _b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift]    

       {txt}_nl_1: {res}_b[program] + (2/1)*_b[preshift]+ (2/1)*_b[postshift]

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogunits{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .7387671{col 26}{space 2} .8486508{col 37}{space 1}    0.87{col 46}{space 3}0.384{col 54}{space 4} -.924558{col 67}{space 3} 2.402092
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}.                 
. 
.       
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.                 
. ***PRICES, SUBSIDIZED
. reghdfe dlogprice i.presub3c##ib1.treatc i.presub2c##ib1.treatc i.presub1c##ib1.treatc i.sub1c##ib1.treatc i.postsub1c##ib1.treatc i.postsub2c##ib1.treatc i.postsub3c##ib1.treatc i.postsub4c##ib1.treatc i.postsub5c##ib1.treatc i.postsub6c##ib1.treatc i.postsub7c##ib1.treatc  mage mage2  if country!="Hungary" & samples , absorb (id2 cmt) cluster(id)
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 2 HDFE groups{col 51}F({res}  24{txt},{res}   5680{txt}){col 67}= {res}      3.18
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4396
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0129
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.0658

{txt}{ralign 82:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogprice{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3c {c |}{col 18}{res}{space 2}  .019811{col 30}{space 2}  .015436{col 41}{space 1}    1.28{col 50}{space 3}0.199{col 58}{space 4}-.0104495{col 71}{space 3} .0500714
{txt}{space 8}0.treatc {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0023003{col 30}{space 2} .0184472{col 41}{space 1}   -0.12{col 50}{space 3}0.901{col 58}{space 4} -.038464{col 71}{space 3} .0338633
{txt}{space 16} {c |}
{space 6}1.presub2c {c |}{col 18}{res}{space 2}-.0159307{col 30}{space 2} .0106394{col 41}{space 1}   -1.50{col 50}{space 3}0.134{col 58}{space 4} -.036788{col 71}{space 3} .0049266
{txt}{space 16} {c |}
{space 1}presub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0157206{col 30}{space 2} .0142565{col 41}{space 1}    1.10{col 50}{space 3}0.270{col 58}{space 4}-.0122275{col 71}{space 3} .0436687
{txt}{space 16} {c |}
{space 6}1.presub1c {c |}{col 18}{res}{space 2}  .000484{col 30}{space 2} .0107482{col 41}{space 1}    0.05{col 50}{space 3}0.964{col 58}{space 4}-.0205866{col 71}{space 3} .0215547
{txt}{space 16} {c |}
{space 1}presub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0353613{col 30}{space 2} .0162081{col 41}{space 1}   -2.18{col 50}{space 3}0.029{col 58}{space 4}-.0671353{col 71}{space 3}-.0035872
{txt}{space 16} {c |}
{space 9}1.sub1c {c |}{col 18}{res}{space 2} .0287259{col 30}{space 2} .0104345{col 41}{space 1}    2.75{col 50}{space 3}0.006{col 58}{space 4} .0082704{col 71}{space 3} .0491814
{txt}{space 16} {c |}
{space 4}sub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} -.016732{col 30}{space 2} .0157515{col 41}{space 1}   -1.06{col 50}{space 3}0.288{col 58}{space 4} -.047611{col 71}{space 3} .0141471
{txt}{space 16} {c |}
{space 5}1.postsub1c {c |}{col 18}{res}{space 2} .0224959{col 30}{space 2} .0084676{col 41}{space 1}    2.66{col 50}{space 3}0.008{col 58}{space 4} .0058962{col 71}{space 3} .0390956
{txt}{space 16} {c |}
postsub1c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0138511{col 30}{space 2}  .014081{col 41}{space 1}    0.98{col 50}{space 3}0.325{col 58}{space 4}-.0137531{col 71}{space 3} .0414552
{txt}{space 16} {c |}
{space 5}1.postsub2c {c |}{col 18}{res}{space 2}  -.01242{col 30}{space 2} .0086167{col 41}{space 1}   -1.44{col 50}{space 3}0.150{col 58}{space 4}-.0293121{col 71}{space 3} .0044721
{txt}{space 16} {c |}
postsub2c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0129886{col 30}{space 2} .0134203{col 41}{space 1}    0.97{col 50}{space 3}0.333{col 58}{space 4}-.0133202{col 71}{space 3} .0392975
{txt}{space 16} {c |}
{space 5}1.postsub3c {c |}{col 18}{res}{space 2} .0011147{col 30}{space 2} .0098277{col 41}{space 1}    0.11{col 50}{space 3}0.910{col 58}{space 4}-.0181513{col 71}{space 3} .0203807
{txt}{space 16} {c |}
postsub3c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} -.008824{col 30}{space 2} .0143132{col 41}{space 1}   -0.62{col 50}{space 3}0.538{col 58}{space 4}-.0368832{col 71}{space 3} .0192353
{txt}{space 16} {c |}
{space 5}1.postsub4c {c |}{col 18}{res}{space 2} .0100593{col 30}{space 2} .0072727{col 41}{space 1}    1.38{col 50}{space 3}0.167{col 58}{space 4}-.0041979{col 71}{space 3} .0243164
{txt}{space 16} {c |}
postsub4c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2}-.0045896{col 30}{space 2} .0148203{col 41}{space 1}   -0.31{col 50}{space 3}0.757{col 58}{space 4}-.0336431{col 71}{space 3} .0244638
{txt}{space 16} {c |}
{space 5}1.postsub5c {c |}{col 18}{res}{space 2} .0050188{col 30}{space 2} .0088661{col 41}{space 1}    0.57{col 50}{space 3}0.571{col 58}{space 4}-.0123622{col 71}{space 3} .0223998
{txt}{space 16} {c |}
postsub5c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0096092{col 30}{space 2}  .015182{col 41}{space 1}    0.63{col 50}{space 3}0.527{col 58}{space 4}-.0201533{col 71}{space 3} .0393717
{txt}{space 16} {c |}
{space 5}1.postsub6c {c |}{col 18}{res}{space 2} .0009288{col 30}{space 2} .0087605{col 41}{space 1}    0.11{col 50}{space 3}0.916{col 58}{space 4}-.0162452{col 71}{space 3} .0181028
{txt}{space 16} {c |}
postsub6c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0003427{col 30}{space 2} .0125358{col 41}{space 1}    0.03{col 50}{space 3}0.978{col 58}{space 4}-.0242322{col 71}{space 3} .0249176
{txt}{space 16} {c |}
{space 5}1.postsub7c {c |}{col 18}{res}{space 2} -.025284{col 30}{space 2} .0101442{col 41}{space 1}   -2.49{col 50}{space 3}0.013{col 58}{space 4}-.0451704{col 71}{space 3}-.0053976
{txt}{space 16} {c |}
postsub7c#treatc {c |}
{space 12}1 0  {c |}{col 18}{res}{space 2} .0279816{col 30}{space 2}  .014226{col 41}{space 1}    1.97{col 50}{space 3}0.049{col 58}{space 4} .0000932{col 71}{space 3}   .05587
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0000678{col 30}{space 2} .0000576{col 41}{space 1}   -1.18{col 50}{space 3}0.240{col 58}{space 4}-.0001808{col 71}{space 3} .0000452
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} 1.20e-06{col 30}{space 2} 8.11e-07{col 41}{space 1}    1.48{col 50}{space 3}0.139{col 58}{space 4}-3.91e-07{col 71}{space 3} 2.79e-06
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}-.0029664{col 30}{space 2} .0008244{col 41}{space 1}   -3.60{col 50}{space 3}0.000{col 58}{space 4}-.0045826{col 71}{space 3}-.0013502
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subp
{txt}
{com}. 
.                 nlcom           1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)

       {txt}_nl_1: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0133678{col 26}{space 2} .0123927{col 37}{space 1}    1.08{col 46}{space 3}0.281{col 54}{space 4}-.0109214{col 67}{space 3}  .037657
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 nlcom           1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1)

       {txt}_nl_1: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0351321{col 26}{space 2} .0153365{col 37}{space 1}    2.29{col 46}{space 3}0.022{col 54}{space 4} .0050731{col 67}{space 3} .0651912
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.         
. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. 
. ***PRICES, NON-SUBSIDIZED
. reghdfe dlogprice i.presub3c##i.treatc i.presub2c##i.treatc i.presub1c##i.treatc i.sub1c##i.treatc i.postsub1c##i.treatc i.postsub2c##i.treatc i.postsub3c##i.treatc i.postsub4c##i.treatc i.postsub5c##i.treatc i.postsub6c##i.treatc i.postsub7c##i.treatc  mage mage2  if country!="Hungary"  & samples, absorb (id2 cmt) cluster(id)
{res}{txt}note: {res}1bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 1.treatc omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   213,351
{txt}Absorbing 2 HDFE groups{col 51}F({res}  24{txt},{res}   5680{txt}){col 67}= {res}      3.18
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4396
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0129
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}     5,681{txt}{col 51}Root MSE{col 67}= {res}    0.0658

{txt}{ralign 82:(Std. err. adjusted for {res:5,681} clusters in {res:id})}
{hline 17}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 18}{c |}{col 30}    Robust
{col 1}       dlogprice{col 18}{c |} Coefficient{col 30}  std. err.{col 42}      t{col 50}   P>|t|{col 58}     [95% con{col 71}f. interval]
{hline 17}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}1.presub3c {c |}{col 18}{res}{space 2} .0175106{col 30}{space 2} .0101021{col 41}{space 1}    1.73{col 50}{space 3}0.083{col 58}{space 4}-.0022933{col 71}{space 3} .0373145
{txt}{space 8}1.treatc {c |}{col 18}{res}{space 2}        0{col 30}{txt}  (omitted)
{space 16} {c |}
{space 1}presub3c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0023003{col 30}{space 2} .0184472{col 41}{space 1}    0.12{col 50}{space 3}0.901{col 58}{space 4}-.0338633{col 71}{space 3}  .038464
{txt}{space 16} {c |}
{space 6}1.presub2c {c |}{col 18}{res}{space 2}-.0002101{col 30}{space 2} .0094891{col 41}{space 1}   -0.02{col 50}{space 3}0.982{col 58}{space 4}-.0188123{col 71}{space 3} .0183921
{txt}{space 16} {c |}
{space 1}presub2c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0157206{col 30}{space 2} .0142565{col 41}{space 1}   -1.10{col 50}{space 3}0.270{col 58}{space 4}-.0436687{col 71}{space 3} .0122275
{txt}{space 16} {c |}
{space 6}1.presub1c {c |}{col 18}{res}{space 2}-.0348772{col 30}{space 2} .0121306{col 41}{space 1}   -2.88{col 50}{space 3}0.004{col 58}{space 4}-.0586577{col 71}{space 3}-.0110967
{txt}{space 16} {c |}
{space 1}presub1c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0353613{col 30}{space 2} .0162081{col 41}{space 1}    2.18{col 50}{space 3}0.029{col 58}{space 4} .0035872{col 71}{space 3} .0671353
{txt}{space 16} {c |}
{space 9}1.sub1c {c |}{col 18}{res}{space 2} .0119939{col 30}{space 2} .0117999{col 41}{space 1}    1.02{col 50}{space 3}0.309{col 58}{space 4}-.0111384{col 71}{space 3} .0351263
{txt}{space 16} {c |}
{space 4}sub1c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}  .016732{col 30}{space 2} .0157515{col 41}{space 1}    1.06{col 50}{space 3}0.288{col 58}{space 4}-.0141471{col 71}{space 3}  .047611
{txt}{space 16} {c |}
{space 5}1.postsub1c {c |}{col 18}{res}{space 2}  .036347{col 30}{space 2} .0112512{col 41}{space 1}    3.23{col 50}{space 3}0.001{col 58}{space 4} .0142904{col 71}{space 3} .0584036
{txt}{space 16} {c |}
postsub1c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0138511{col 30}{space 2}  .014081{col 41}{space 1}   -0.98{col 50}{space 3}0.325{col 58}{space 4}-.0414552{col 71}{space 3} .0137531
{txt}{space 16} {c |}
{space 5}1.postsub2c {c |}{col 18}{res}{space 2} .0005686{col 30}{space 2} .0102868{col 41}{space 1}    0.06{col 50}{space 3}0.956{col 58}{space 4}-.0195975{col 71}{space 3} .0207347
{txt}{space 16} {c |}
postsub2c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0129886{col 30}{space 2} .0134203{col 41}{space 1}   -0.97{col 50}{space 3}0.333{col 58}{space 4}-.0392975{col 71}{space 3} .0133202
{txt}{space 16} {c |}
{space 5}1.postsub3c {c |}{col 18}{res}{space 2}-.0077093{col 30}{space 2}  .010408{col 41}{space 1}   -0.74{col 50}{space 3}0.459{col 58}{space 4}-.0281129{col 71}{space 3} .0126943
{txt}{space 16} {c |}
postsub3c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}  .008824{col 30}{space 2} .0143132{col 41}{space 1}    0.62{col 50}{space 3}0.538{col 58}{space 4}-.0192353{col 71}{space 3} .0368832
{txt}{space 16} {c |}
{space 5}1.postsub4c {c |}{col 18}{res}{space 2} .0054696{col 30}{space 2} .0129131{col 41}{space 1}    0.42{col 50}{space 3}0.672{col 58}{space 4}-.0198449{col 71}{space 3} .0307841
{txt}{space 16} {c |}
postsub4c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2} .0045896{col 30}{space 2} .0148203{col 41}{space 1}    0.31{col 50}{space 3}0.757{col 58}{space 4}-.0244638{col 71}{space 3} .0336431
{txt}{space 16} {c |}
{space 5}1.postsub5c {c |}{col 18}{res}{space 2}  .014628{col 30}{space 2} .0123247{col 41}{space 1}    1.19{col 50}{space 3}0.235{col 58}{space 4}-.0095331{col 71}{space 3} .0387892
{txt}{space 16} {c |}
postsub5c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0096092{col 30}{space 2}  .015182{col 41}{space 1}   -0.63{col 50}{space 3}0.527{col 58}{space 4}-.0393717{col 71}{space 3} .0201533
{txt}{space 16} {c |}
{space 5}1.postsub6c {c |}{col 18}{res}{space 2} .0012715{col 30}{space 2} .0089654{col 41}{space 1}    0.14{col 50}{space 3}0.887{col 58}{space 4}-.0163042{col 71}{space 3} .0188471
{txt}{space 16} {c |}
postsub6c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0003427{col 30}{space 2} .0125358{col 41}{space 1}   -0.03{col 50}{space 3}0.978{col 58}{space 4}-.0249176{col 71}{space 3} .0242322
{txt}{space 16} {c |}
{space 5}1.postsub7c {c |}{col 18}{res}{space 2} .0026976{col 30}{space 2} .0099747{col 41}{space 1}    0.27{col 50}{space 3}0.787{col 58}{space 4}-.0168567{col 71}{space 3} .0222519
{txt}{space 16} {c |}
postsub7c#treatc {c |}
{space 12}1 1  {c |}{col 18}{res}{space 2}-.0279816{col 30}{space 2}  .014226{col 41}{space 1}   -1.97{col 50}{space 3}0.049{col 58}{space 4}  -.05587{col 71}{space 3}-.0000932
{txt}{space 16} {c |}
{space 12}mage {c |}{col 18}{res}{space 2}-.0000678{col 30}{space 2} .0000576{col 41}{space 1}   -1.18{col 50}{space 3}0.240{col 58}{space 4}-.0001808{col 71}{space 3} .0000452
{txt}{space 11}mage2 {c |}{col 18}{res}{space 2} 1.20e-06{col 30}{space 2} 8.11e-07{col 41}{space 1}    1.48{col 50}{space 3}0.139{col 58}{space 4}-3.91e-07{col 71}{space 3} 2.79e-06
{txt}{space 11}_cons {c |}{col 18}{res}{space 2}-.0029664{col 30}{space 2} .0008244{col 41}{space 1}   -3.60{col 50}{space 3}0.000{col 58}{space 4}-.0045826{col 71}{space 3}-.0013502
{txt}{hline 17}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}    92035{col 27}{space 1}    92035{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}         cmt{col 14}{c |}{space 1}      168{col 27}{space 1}        0{col 39}{result}{space 1}      168{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store nonsubp
{txt}
{com}. 
.                 nlcom           1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)

       {txt}_nl_1: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])-1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2}-.0228288{col 26}{space 2} .0135994{col 37}{space 1}   -1.68{col 46}{space 3}0.093{col 54}{space 4}-.0494831{col 67}{space 3} .0038255
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
.                 nlcom           1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1)

       {txt}_nl_1: {res}1*(exp(_b[1.presub2c])*exp(_b[1.presub1c])*exp(_b[1.sub1c])*exp(_b[1.postsub1c])*exp(_b[1.postsub2c])*exp(_b[1.postsub3c])*exp(_b[1.postsub4c])-1)

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   dlogprice{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      z{col 46}   P>|z|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_nl_1 {c |}{col 14}{res}{space 2} .0116499{col 26}{space 2} .0196445{col 37}{space 1}    0.59{col 46}{space 3}0.553{col 54}{space 4}-.0268526{col 67}{space 3} .0501524
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***TABLES
. 
. **UNITS AND PRICES
. esttab   subu nonsubu  subp nonsubp , se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) keep(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) 
{res}
{txt}{hline 76}
{txt}                      (1)             (2)             (3)             (4)   
{txt}                     subu         nonsubu            subp         nonsubp   
{txt}{hline 76}
{txt}1.presub3c  {res}       -0.016          -0.018           0.020           0.018*  {txt}
            {res} {ralign 12:{txt:(}0.125{txt:)}}    {ralign 12:{txt:(}0.109{txt:)}}    {ralign 12:{txt:(}0.015{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}   {txt}
{txt}1.presub2c  {res}       -0.043           0.207*         -0.016          -0.000   {txt}
            {res} {ralign 12:{txt:(}0.114{txt:)}}    {ralign 12:{txt:(}0.112{txt:)}}    {ralign 12:{txt:(}0.011{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}   {txt}
{txt}1.presub1c  {res}       -0.076          -0.152           0.000          -0.035***{txt}
            {res} {ralign 12:{txt:(}0.113{txt:)}}    {ralign 12:{txt:(}0.098{txt:)}}    {ralign 12:{txt:(}0.011{txt:)}}    {ralign 12:{txt:(}0.012{txt:)}}   {txt}
{txt}1.sub1c     {res}        0.918***        0.364***        0.029***        0.012   {txt}
            {res} {ralign 12:{txt:(}0.094{txt:)}}    {ralign 12:{txt:(}0.126{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}    {ralign 12:{txt:(}0.012{txt:)}}   {txt}
{txt}1.postsub1c {res}       -0.844***        0.031           0.022***        0.036***{txt}
            {res} {ralign 12:{txt:(}0.096{txt:)}}    {ralign 12:{txt:(}0.117{txt:)}}    {ralign 12:{txt:(}0.008{txt:)}}    {ralign 12:{txt:(}0.011{txt:)}}   {txt}
{txt}1.postsub2c {res}        0.044          -0.048          -0.012           0.001   {txt}
            {res} {ralign 12:{txt:(}0.102{txt:)}}    {ralign 12:{txt:(}0.092{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}   {txt}
{txt}1.postsub3c {res}       -0.405***       -0.047           0.001          -0.008   {txt}
            {res} {ralign 12:{txt:(}0.110{txt:)}}    {ralign 12:{txt:(}0.105{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}   {txt}
{txt}1.postsub4c {res}        0.978***       -0.399***        0.010           0.005   {txt}
            {res} {ralign 12:{txt:(}0.112{txt:)}}    {ralign 12:{txt:(}0.120{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.013{txt:)}}   {txt}
{txt}1.postsub5c {res}       -0.594***       -0.100           0.005           0.015   {txt}
            {res} {ralign 12:{txt:(}0.107{txt:)}}    {ralign 12:{txt:(}0.097{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}    {ralign 12:{txt:(}0.012{txt:)}}   {txt}
{txt}1.postsub6c {res}        0.085           0.138           0.001           0.001   {txt}
            {res} {ralign 12:{txt:(}0.111{txt:)}}    {ralign 12:{txt:(}0.105{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}   {txt}
{txt}1.postsub7c {res}       -0.033          -0.131          -0.025**         0.003   {txt}
            {res} {ralign 12:{txt:(}0.105{txt:)}}    {ralign 12:{txt:(}0.108{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}   {txt}
{txt}{hline 76}
{txt}N           {res}       213351          213351          213351          213351   {txt}
{txt}{hline 76}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subu nonsubu  subp nonsubp  using "R:\WSV2\TBu_BMa\Subsidies Project\Results\HR_15.tex" ,replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) keep(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\HR_15.tex"'})

{com}. 
. esttab   subu_cy subu_trends,  se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) keep(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) 
{res}
{txt}{hline 44}
{txt}                      (1)             (2)   
{txt}                  subu_cy     subu_trends   
{txt}{hline 44}
{txt}1.presub3c  {res}        0.013          -0.013   {txt}
            {res} {ralign 12:{txt:(}0.142{txt:)}}    {ralign 12:{txt:(}0.125{txt:)}}   {txt}
{txt}1.presub2c  {res}       -0.014          -0.040   {txt}
            {res} {ralign 12:{txt:(}0.125{txt:)}}    {ralign 12:{txt:(}0.114{txt:)}}   {txt}
{txt}1.presub1c  {res}       -0.046          -0.073   {txt}
            {res} {ralign 12:{txt:(}0.124{txt:)}}    {ralign 12:{txt:(}0.113{txt:)}}   {txt}
{txt}1.sub1c     {res}        0.945***        0.921***{txt}
            {res} {ralign 12:{txt:(}0.102{txt:)}}    {ralign 12:{txt:(}0.094{txt:)}}   {txt}
{txt}1.postsub1c {res}       -0.817***       -0.841***{txt}
            {res} {ralign 12:{txt:(}0.104{txt:)}}    {ralign 12:{txt:(}0.096{txt:)}}   {txt}
{txt}1.postsub2c {res}        0.071           0.048   {txt}
            {res} {ralign 12:{txt:(}0.112{txt:)}}    {ralign 12:{txt:(}0.102{txt:)}}   {txt}
{txt}1.postsub3c {res}       -0.380***       -0.402***{txt}
            {res} {ralign 12:{txt:(}0.122{txt:)}}    {ralign 12:{txt:(}0.110{txt:)}}   {txt}
{txt}1.postsub4c {res}        1.004***        0.982***{txt}
            {res} {ralign 12:{txt:(}0.118{txt:)}}    {ralign 12:{txt:(}0.112{txt:)}}   {txt}
{txt}1.postsub5c {res}       -0.568***       -0.591***{txt}
            {res} {ralign 12:{txt:(}0.121{txt:)}}    {ralign 12:{txt:(}0.107{txt:)}}   {txt}
{txt}1.postsub6c {res}        0.110           0.088   {txt}
            {res} {ralign 12:{txt:(}0.119{txt:)}}    {ralign 12:{txt:(}0.111{txt:)}}   {txt}
{txt}1.postsub7c {res}       -0.005          -0.029   {txt}
            {res} {ralign 12:{txt:(}0.112{txt:)}}    {ralign 12:{txt:(}0.105{txt:)}}   {txt}
{txt}{hline 44}
{txt}N           {res}       213351          213351   {txt}
{txt}{hline 44}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subu_cy subu_trends  using "R:\WSV2\TBu_BMa\Subsidies Project\Results\HR_15_cy.tex" ,replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) keep(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\HR_15_cy.tex"'})

{com}.                 
. restore 
{txt}
{com}.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***RESPONSE BY SUBSIDIZED CATEGORY
. 
. egen cmtc=group(country month treatc cat)
{txt}
{com}. 
. ***WASHING MACHINES, UNIT SALES, SUBSIDIZED
. 
. reghdfe dlogunits i.presub3c##ib1.treatc##ib0.cat i.presub2c##ib1.treatc##ib0.cat i.presub1c##ib1.treatc##ib0.cat i.sub1c##ib1.treatc##ib0.cat i.postsub1c##ib1.treatc##ib0.cat i.postsub2c##ib1.treatc##ib0.cat i.postsub3c##ib1.treatc##ib0.cat i.postsub4c##ib1.treatc##ib0.cat i.postsub5c##ib1.treatc##ib0.cat i.postsub6c##ib1.treatc##ib0.cat i.postsub7c##ib1.treatc##ib0.cat  mage mage2  if country!="Hungary" , absorb (id2 cmtc) cluster(id)
{res}{txt}(dropped 320568 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.cat{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treatc#1bn.cat{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{txt}note: 1.cat omitted because of collinearity
{txt}note: 0.treatc#1.cat omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   670,879
{txt}Absorbing 2 HDFE groups{col 51}F({res}  46{txt},{res}  16458{txt}){col 67}= {res}     12.51
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4669
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0761
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0012
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    16,459{txt}{col 51}Root MSE{col 67}= {res}    0.7068

{txt}{ralign 86:(Std. err. adjusted for {res:16,459} clusters in {res:id})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}           dlogunits{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}1.presub3c {c |}{col 22}{res}{space 2}-.0164362{col 34}{space 2} .1251693{col 45}{space 1}   -0.13{col 54}{space 3}0.896{col 62}{space 4}-.2617816{col 75}{space 3} .2289092
{txt}{space 12}0.treatc {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 5}presub3c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0014689{col 34}{space 2} .1658136{col 45}{space 1}   -0.01{col 54}{space 3}0.993{col 62}{space 4}-.3264816{col 75}{space 3} .3235437
{txt}{space 20} {c |}
{space 15}1.cat {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 8}presub3c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} 1.004445{col 34}{space 2} .2893227{col 45}{space 1}    3.47{col 54}{space 3}0.001{col 62}{space 4} .4373414{col 75}{space 3} 1.571549
{txt}{space 20} {c |}
{space 10}treatc#cat {c |}
{space 16}0 1  {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 1}presub3c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}-1.044647{col 34}{space 2} .3152691{col 45}{space 1}   -3.31{col 54}{space 3}0.001{col 62}{space 4}-1.662609{col 75}{space 3}-.4266858
{txt}{space 20} {c |}
{space 10}1.presub2c {c |}{col 22}{res}{space 2}-.0430005{col 34}{space 2} .1145325{col 45}{space 1}   -0.38{col 54}{space 3}0.707{col 62}{space 4}-.2674966{col 75}{space 3} .1814956
{txt}{space 20} {c |}
{space 5}presub2c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .2492705{col 34}{space 2}  .160311{col 45}{space 1}    1.55{col 54}{space 3}0.120{col 62}{space 4}-.0649563{col 75}{space 3} .5634973
{txt}{space 20} {c |}
{space 8}presub2c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}  -1.1525{col 34}{space 2} .2492461{col 45}{space 1}   -4.62{col 54}{space 3}0.000{col 62}{space 4}-1.641049{col 75}{space 3}-.6639507
{txt}{space 20} {c |}
{space 1}presub2c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2} .9963153{col 34}{space 2} .2814787{col 45}{space 1}    3.54{col 54}{space 3}0.000{col 62}{space 4} .4445867{col 75}{space 3} 1.548044
{txt}{space 20} {c |}
{space 10}1.presub1c {c |}{col 22}{res}{space 2} -.075988{col 34}{space 2} .1124632{col 45}{space 1}   -0.68{col 54}{space 3}0.499{col 62}{space 4} -.296428{col 75}{space 3}  .144452
{txt}{space 20} {c |}
{space 5}presub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0764948{col 34}{space 2} .1490283{col 45}{space 1}   -0.51{col 54}{space 3}0.608{col 62}{space 4}-.3686063{col 75}{space 3} .2156167
{txt}{space 20} {c |}
{space 8}presub1c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0180894{col 34}{space 2} .3654069{col 45}{space 1}    0.05{col 54}{space 3}0.961{col 62}{space 4}-.6981476{col 75}{space 3} .7343263
{txt}{space 20} {c |}
{space 1}presub1c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}  .213841{col 34}{space 2} .3824989{col 45}{space 1}    0.56{col 54}{space 3}0.576{col 62}{space 4}-.5358982{col 75}{space 3} .9635802
{txt}{space 20} {c |}
{space 13}1.sub1c {c |}{col 22}{res}{space 2} .9177682{col 34}{space 2} .0935232{col 45}{space 1}    9.81{col 54}{space 3}0.000{col 62}{space 4} .7344526{col 75}{space 3} 1.101084
{txt}{space 20} {c |}
{space 8}sub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.5540035{col 34}{space 2} .1571658{col 45}{space 1}   -3.52{col 54}{space 3}0.000{col 62}{space 4}-.8620654{col 75}{space 3}-.2459415
{txt}{space 20} {c |}
{space 11}sub1c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0153218{col 34}{space 2} .4756199{col 45}{space 1}    0.03{col 54}{space 3}0.974{col 62}{space 4}-.9169446{col 75}{space 3} .9475883
{txt}{space 20} {c |}
{space 4}sub1c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}-.3457659{col 34}{space 2} .4949079{col 45}{space 1}   -0.70{col 54}{space 3}0.485{col 62}{space 4}-1.315839{col 75}{space 3} .6243072
{txt}{space 20} {c |}
{space 9}1.postsub1c {c |}{col 22}{res}{space 2}-.8436929{col 34}{space 2} .0963295{col 45}{space 1}   -8.76{col 54}{space 3}0.000{col 62}{space 4}-1.032509{col 75}{space 3}-.6548767
{txt}{space 20} {c |}
{space 4}postsub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .8738251{col 34}{space 2} .1512424{col 45}{space 1}    5.78{col 54}{space 3}0.000{col 62}{space 4} .5773737{col 75}{space 3} 1.170277
{txt}{space 20} {c |}
{space 7}postsub1c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.1618252{col 34}{space 2} .5865735{col 45}{space 1}   -0.28{col 54}{space 3}0.783{col 62}{space 4}-1.311573{col 75}{space 3} .9879224
{txt}{space 20} {c |}
postsub1c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2} .0151592{col 34}{space 2} .6006927{col 45}{space 1}    0.03{col 54}{space 3}0.980{col 62}{space 4}-1.162264{col 75}{space 3} 1.192582
{txt}{space 20} {c |}
{space 9}1.postsub2c {c |}{col 22}{res}{space 2}  .044397{col 34}{space 2} .1022023{col 45}{space 1}    0.43{col 54}{space 3}0.664{col 62}{space 4}-.1559305{col 75}{space 3} .2447244
{txt}{space 20} {c |}
{space 4}postsub2c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0933411{col 34}{space 2}   .13767{col 45}{space 1}   -0.68{col 54}{space 3}0.498{col 62}{space 4}-.3631891{col 75}{space 3}  .176507
{txt}{space 20} {c |}
{space 7}postsub2c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .1987511{col 34}{space 2}   .54173{col 45}{space 1}    0.37{col 54}{space 3}0.714{col 62}{space 4}-.8630983{col 75}{space 3} 1.260601
{txt}{space 20} {c |}
postsub2c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}-.1731541{col 34}{space 2}  .551762{col 45}{space 1}   -0.31{col 54}{space 3}0.754{col 62}{space 4}-1.254667{col 75}{space 3} .9083591
{txt}{space 20} {c |}
{space 9}1.postsub3c {c |}{col 22}{res}{space 2}-.4057716{col 34}{space 2} .1102184{col 45}{space 1}   -3.68{col 54}{space 3}0.000{col 62}{space 4}-.6218116{col 75}{space 3}-.1897316
{txt}{space 20} {c |}
{space 4}postsub3c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .3577724{col 34}{space 2}  .152478{col 45}{space 1}    2.35{col 54}{space 3}0.019{col 62}{space 4}  .058899{col 75}{space 3} .6566458
{txt}{space 20} {c |}
{space 7}postsub3c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.6432327{col 34}{space 2} .3319187{col 45}{space 1}   -1.94{col 54}{space 3}0.053{col 62}{space 4}-1.293829{col 75}{space 3} .0073639
{txt}{space 20} {c |}
postsub3c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2} .5861676{col 34}{space 2} .3519792{col 45}{space 1}    1.67{col 54}{space 3}0.096{col 62}{space 4}-.1037498{col 75}{space 3} 1.276085
{txt}{space 20} {c |}
{space 9}1.postsub4c {c |}{col 22}{res}{space 2} .9779478{col 34}{space 2} .1123254{col 45}{space 1}    8.71{col 54}{space 3}0.000{col 62}{space 4} .7577779{col 75}{space 3} 1.198118
{txt}{space 20} {c |}
{space 4}postsub4c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} -1.37824{col 34}{space 2} .1642728{col 45}{space 1}   -8.39{col 54}{space 3}0.000{col 62}{space 4}-1.700233{col 75}{space 3}-1.056248
{txt}{space 20} {c |}
{space 7}postsub4c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .7487149{col 34}{space 2} .4096432{col 45}{space 1}    1.83{col 54}{space 3}0.068{col 62}{space 4}  -.05423{col 75}{space 3}  1.55166
{txt}{space 20} {c |}
postsub4c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}-.1425444{col 34}{space 2} .4302508{col 45}{space 1}   -0.33{col 54}{space 3}0.740{col 62}{space 4}-.9858825{col 75}{space 3} .7007936
{txt}{space 20} {c |}
{space 9}1.postsub5c {c |}{col 22}{res}{space 2}-.5943138{col 34}{space 2} .1072675{col 45}{space 1}   -5.54{col 54}{space 3}0.000{col 62}{space 4}-.8045698{col 75}{space 3}-.3840579
{txt}{space 20} {c |}
{space 4}postsub5c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}  .493331{col 34}{space 2} .1446589{col 45}{space 1}    3.41{col 54}{space 3}0.001{col 62}{space 4}  .209784{col 75}{space 3}  .776878
{txt}{space 20} {c |}
{space 7}postsub5c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.7595246{col 34}{space 2} .4699403{col 45}{space 1}   -1.62{col 54}{space 3}0.106{col 62}{space 4}-1.680658{col 75}{space 3} .1616092
{txt}{space 20} {c |}
postsub5c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2} .7549931{col 34}{space 2} .4831545{col 45}{space 1}    1.56{col 54}{space 3}0.118{col 62}{space 4} -.192042{col 75}{space 3} 1.702028
{txt}{space 20} {c |}
{space 9}1.postsub6c {c |}{col 22}{res}{space 2}   .08489{col 34}{space 2} .1112828{col 45}{space 1}    0.76{col 54}{space 3}0.446{col 62}{space 4}-.1332363{col 75}{space 3} .3030164
{txt}{space 20} {c |}
{space 4}postsub6c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0520097{col 34}{space 2} .1526925{col 45}{space 1}    0.34{col 54}{space 3}0.733{col 62}{space 4}-.2472841{col 75}{space 3} .3513036
{txt}{space 20} {c |}
{space 7}postsub6c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .3238662{col 34}{space 2} .4037153{col 45}{space 1}    0.80{col 54}{space 3}0.422{col 62}{space 4}-.4674594{col 75}{space 3} 1.115192
{txt}{space 20} {c |}
postsub6c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}-.5083304{col 34}{space 2} .4205042{col 45}{space 1}   -1.21{col 54}{space 3}0.227{col 62}{space 4}-1.332564{col 75}{space 3} .3159033
{txt}{space 20} {c |}
{space 9}1.postsub7c {c |}{col 22}{res}{space 2}-.0321317{col 34}{space 2} .1047337{col 45}{space 1}   -0.31{col 54}{space 3}0.759{col 62}{space 4}-.2374211{col 75}{space 3} .1731578
{txt}{space 20} {c |}
{space 4}postsub7c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0992833{col 34}{space 2} .1503782{col 45}{space 1}   -0.66{col 54}{space 3}0.509{col 62}{space 4}-.3940409{col 75}{space 3} .1954743
{txt}{space 20} {c |}
{space 7}postsub7c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.7498893{col 34}{space 2} .4857123{col 45}{space 1}   -1.54{col 54}{space 3}0.123{col 62}{space 4}-1.701938{col 75}{space 3} .2021594
{txt}{space 20} {c |}
postsub7c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}  .858247{col 34}{space 2} .5011526{col 45}{space 1}    1.71{col 54}{space 3}0.087{col 62}{space 4}-.1240663{col 75}{space 3}  1.84056
{txt}{space 20} {c |}
{space 16}mage {c |}{col 22}{res}{space 2}-.0029566{col 34}{space 2} .0003066{col 45}{space 1}   -9.64{col 54}{space 3}0.000{col 62}{space 4}-.0035575{col 75}{space 3}-.0023557
{txt}{space 15}mage2 {c |}{col 22}{res}{space 2} .0000243{col 34}{space 2} 3.53e-06{col 45}{space 1}    6.88{col 54}{space 3}0.000{col 62}{space 4} .0000174{col 75}{space 3} .0000313
{txt}{space 15}_cons {c |}{col 22}{res}{space 2} .0373631{col 34}{space 2} .0049923{col 45}{space 1}    7.48{col 54}{space 3}0.000{col 62}{space 4} .0275777{col 75}{space 3} .0471485
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   283430{col 27}{space 1}   283430{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmtc{col 14}{c |}{space 1}      335{col 27}{space 1}        0{col 39}{result}{space 1}      335{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subwmu
{txt}
{com}. gen samplew=e(sample)
{txt}
{com}. codebook id if samplew

{txt}{hline}
{res}id{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str11{txt})

{col 10}Unique values: {res}16,459{col 51}{txt}Missing "": {res}0{txt}/{res}670,879

{txt}{col 15}Examples: {res}"28443792"
{col 25}"38248340"
{col 25}"58911803"
{col 25}"76263248"
{txt}
{com}. codebook id if samplew & treatc==1

{txt}{hline}
{res}id{right:(unlabeled)}
{txt}{hline}

{col 19}Type: String ({res}str11{txt})

{col 10}Unique values: {res}2,354{col 51}{txt}Missing "": {res}0{txt}/{res}77,859

{txt}{col 15}Examples: {res}"53150728"
{col 25}"68539587"
{col 25}"78503892"
{col 25}"88228618"
{txt}
{com}.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++          
. ***REFRIGERATORS AND FREEZERS, UNIT SALES, SUBSIDIZED
. 
. reghdfe dlogunits i.presub3c##ib1.treatc##ib1.cat i.presub2c##ib1.treatc##ib1.cat i.presub1c##ib1.treatc##ib1.cat i.sub1c##ib1.treatc##ib1.cat i.postsub1c##ib1.treatc##ib1.cat i.postsub2c##ib1.treatc##ib1.cat i.postsub3c##ib1.treatc##ib1.cat i.postsub4c##ib1.treatc##ib1.cat i.postsub5c##ib1.treatc##ib1.cat i.postsub6c##ib1.treatc##ib1.cat i.postsub7c##ib1.treatc##ib1.cat  mage mage2  if country!="Hungary" , absorb (id2 cmtc) cluster(id)
{res}{txt}(dropped 320568 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.cat{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treatc#0bn.cat{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{txt}note: 0.cat omitted because of collinearity
{txt}note: 0.treatc#0.cat omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   670,879
{txt}Absorbing 2 HDFE groups{col 51}F({res}  46{txt},{res}  16458{txt}){col 67}= {res}     12.51
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4669
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0761
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0012
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    16,459{txt}{col 51}Root MSE{col 67}= {res}    0.7068

{txt}{ralign 86:(Std. err. adjusted for {res:16,459} clusters in {res:id})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}           dlogunits{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}1.presub3c {c |}{col 22}{res}{space 2}  .988009{col 34}{space 2} .2608438{col 45}{space 1}    3.79{col 54}{space 3}0.000{col 62}{space 4} .4767269{col 75}{space 3} 1.499291
{txt}{space 12}0.treatc {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 5}presub3c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-1.046116{col 34}{space 2} .2681418{col 45}{space 1}   -3.90{col 54}{space 3}0.000{col 62}{space 4}-1.571703{col 75}{space 3}-.5205292
{txt}{space 20} {c |}
{space 15}0.cat {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 8}presub3c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-1.004445{col 34}{space 2} .2893227{col 45}{space 1}   -3.47{col 54}{space 3}0.001{col 62}{space 4}-1.571549{col 75}{space 3}-.4373414
{txt}{space 20} {c |}
{space 10}treatc#cat {c |}
{space 16}0 0  {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 1}presub3c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} 1.044647{col 34}{space 2} .3152691{col 45}{space 1}    3.31{col 54}{space 3}0.001{col 62}{space 4} .4266858{col 75}{space 3} 1.662609
{txt}{space 20} {c |}
{space 10}1.presub2c {c |}{col 22}{res}{space 2}-1.195501{col 34}{space 2} .2213691{col 45}{space 1}   -5.40{col 54}{space 3}0.000{col 62}{space 4}-1.629408{col 75}{space 3}-.7615932
{txt}{space 20} {c |}
{space 5}presub2c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} 1.245586{col 34}{space 2} .2313627{col 45}{space 1}    5.38{col 54}{space 3}0.000{col 62}{space 4}   .79209{col 75}{space 3} 1.699082
{txt}{space 20} {c |}
{space 8}presub2c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}   1.1525{col 34}{space 2} .2492461{col 45}{space 1}    4.62{col 54}{space 3}0.000{col 62}{space 4} .6639507{col 75}{space 3} 1.641049
{txt}{space 20} {c |}
{space 1}presub2c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2}-.9963153{col 34}{space 2} .2814787{col 45}{space 1}   -3.54{col 54}{space 3}0.000{col 62}{space 4}-1.548044{col 75}{space 3}-.4445867
{txt}{space 20} {c |}
{space 10}1.presub1c {c |}{col 22}{res}{space 2}-.0578986{col 34}{space 2} .3476693{col 45}{space 1}   -0.17{col 54}{space 3}0.868{col 62}{space 4}-.7393679{col 75}{space 3} .6235707
{txt}{space 20} {c |}
{space 5}presub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .1373462{col 34}{space 2} .3522723{col 45}{space 1}    0.39{col 54}{space 3}0.697{col 62}{space 4}-.5531456{col 75}{space 3} .8278379
{txt}{space 20} {c |}
{space 8}presub1c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0180894{col 34}{space 2} .3654069{col 45}{space 1}   -0.05{col 54}{space 3}0.961{col 62}{space 4}-.7343263{col 75}{space 3} .6981476
{txt}{space 20} {c |}
{space 1}presub1c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} -.213841{col 34}{space 2} .3824989{col 45}{space 1}   -0.56{col 54}{space 3}0.576{col 62}{space 4}-.9635802{col 75}{space 3} .5358982
{txt}{space 20} {c |}
{space 13}1.sub1c {c |}{col 22}{res}{space 2} .9330901{col 34}{space 2} .4663339{col 45}{space 1}    2.00{col 54}{space 3}0.045{col 62}{space 4} .0190252{col 75}{space 3} 1.847155
{txt}{space 20} {c |}
{space 8}sub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.8997693{col 34}{space 2} .4692885{col 45}{space 1}   -1.92{col 54}{space 3}0.055{col 62}{space 4}-1.819626{col 75}{space 3} .0200869
{txt}{space 20} {c |}
{space 11}sub1c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0153218{col 34}{space 2} .4756199{col 45}{space 1}   -0.03{col 54}{space 3}0.974{col 62}{space 4}-.9475883{col 75}{space 3} .9169446
{txt}{space 20} {c |}
{space 4}sub1c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} .3457659{col 34}{space 2} .4949079{col 45}{space 1}    0.70{col 54}{space 3}0.485{col 62}{space 4}-.6243072{col 75}{space 3} 1.315839
{txt}{space 20} {c |}
{space 9}1.postsub1c {c |}{col 22}{res}{space 2}-1.005518{col 34}{space 2} .5786126{col 45}{space 1}   -1.74{col 54}{space 3}0.082{col 62}{space 4}-2.139661{col 75}{space 3} .1286251
{txt}{space 20} {c |}
{space 4}postsub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .8889843{col 34}{space 2} .5813431{col 45}{space 1}    1.53{col 54}{space 3}0.126{col 62}{space 4}-.2505111{col 75}{space 3}  2.02848
{txt}{space 20} {c |}
{space 7}postsub1c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .1618252{col 34}{space 2} .5865735{col 45}{space 1}    0.28{col 54}{space 3}0.783{col 62}{space 4}-.9879224{col 75}{space 3} 1.311573
{txt}{space 20} {c |}
postsub1c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2}-.0151592{col 34}{space 2} .6006927{col 45}{space 1}   -0.03{col 54}{space 3}0.980{col 62}{space 4}-1.192582{col 75}{space 3} 1.162264
{txt}{space 20} {c |}
{space 9}1.postsub2c {c |}{col 22}{res}{space 2}  .243148{col 34}{space 2} .5319997{col 45}{space 1}    0.46{col 54}{space 3}0.648{col 62}{space 4}-.7996289{col 75}{space 3} 1.285925
{txt}{space 20} {c |}
{space 4}postsub2c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.2664951{col 34}{space 2}  .534306{col 45}{space 1}   -0.50{col 54}{space 3}0.618{col 62}{space 4}-1.313793{col 75}{space 3} .7808023
{txt}{space 20} {c |}
{space 7}postsub2c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.1987511{col 34}{space 2}   .54173{col 45}{space 1}   -0.37{col 54}{space 3}0.714{col 62}{space 4}-1.260601{col 75}{space 3} .8630983
{txt}{space 20} {c |}
postsub2c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} .1731541{col 34}{space 2}  .551762{col 45}{space 1}    0.31{col 54}{space 3}0.754{col 62}{space 4}-.9083591{col 75}{space 3} 1.254667
{txt}{space 20} {c |}
{space 9}1.postsub3c {c |}{col 22}{res}{space 2}-1.049004{col 34}{space 2} .3130856{col 45}{space 1}   -3.35{col 54}{space 3}0.001{col 62}{space 4}-1.662686{col 75}{space 3}-.4353228
{txt}{space 20} {c |}
{space 4}postsub3c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .9439399{col 34}{space 2} .3172388{col 45}{space 1}    2.98{col 54}{space 3}0.003{col 62}{space 4} .3221176{col 75}{space 3} 1.565762
{txt}{space 20} {c |}
{space 7}postsub3c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .6432327{col 34}{space 2} .3319187{col 45}{space 1}    1.94{col 54}{space 3}0.053{col 62}{space 4}-.0073639{col 75}{space 3} 1.293829
{txt}{space 20} {c |}
postsub3c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2}-.5861676{col 34}{space 2} .3519792{col 45}{space 1}   -1.67{col 54}{space 3}0.096{col 62}{space 4}-1.276085{col 75}{space 3} .1037498
{txt}{space 20} {c |}
{space 9}1.postsub4c {c |}{col 22}{res}{space 2} 1.726663{col 34}{space 2} .3939424{col 45}{space 1}    4.38{col 54}{space 3}0.000{col 62}{space 4} .9544929{col 75}{space 3} 2.498832
{txt}{space 20} {c |}
{space 4}postsub4c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-1.520785{col 34}{space 2} .3976544{col 45}{space 1}   -3.82{col 54}{space 3}0.000{col 62}{space 4} -2.30023{col 75}{space 3} -.741339
{txt}{space 20} {c |}
{space 7}postsub4c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.7487149{col 34}{space 2} .4096432{col 45}{space 1}   -1.83{col 54}{space 3}0.068{col 62}{space 4} -1.55166{col 75}{space 3}   .05423
{txt}{space 20} {c |}
postsub4c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} .1425444{col 34}{space 2} .4302508{col 45}{space 1}    0.33{col 54}{space 3}0.740{col 62}{space 4}-.7007936{col 75}{space 3} .9858825
{txt}{space 20} {c |}
{space 9}1.postsub5c {c |}{col 22}{res}{space 2}-1.353838{col 34}{space 2} .4575345{col 45}{space 1}   -2.96{col 54}{space 3}0.003{col 62}{space 4}-2.250655{col 75}{space 3}-.4570214
{txt}{space 20} {c |}
{space 4}postsub5c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} 1.248324{col 34}{space 2} .4609917{col 45}{space 1}    2.71{col 54}{space 3}0.007{col 62}{space 4} .3447304{col 75}{space 3} 2.151918
{txt}{space 20} {c |}
{space 7}postsub5c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .7595246{col 34}{space 2} .4699403{col 45}{space 1}    1.62{col 54}{space 3}0.106{col 62}{space 4}-.1616092{col 75}{space 3} 1.680658
{txt}{space 20} {c |}
postsub5c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2}-.7549931{col 34}{space 2} .4831545{col 45}{space 1}   -1.56{col 54}{space 3}0.118{col 62}{space 4}-1.702028{col 75}{space 3}  .192042
{txt}{space 20} {c |}
{space 9}1.postsub6c {c |}{col 22}{res}{space 2} .4087562{col 34}{space 2} .3880714{col 45}{space 1}    1.05{col 54}{space 3}0.292{col 62}{space 4}-.3519057{col 75}{space 3} 1.169418
{txt}{space 20} {c |}
{space 4}postsub6c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.4563207{col 34}{space 2} .3917976{col 45}{space 1}   -1.16{col 54}{space 3}0.244{col 62}{space 4}-1.224286{col 75}{space 3} .3116449
{txt}{space 20} {c |}
{space 7}postsub6c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.3238662{col 34}{space 2} .4037153{col 45}{space 1}   -0.80{col 54}{space 3}0.422{col 62}{space 4}-1.115192{col 75}{space 3} .4674594
{txt}{space 20} {c |}
postsub6c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} .5083304{col 34}{space 2} .4205042{col 45}{space 1}    1.21{col 54}{space 3}0.227{col 62}{space 4}-.3159033{col 75}{space 3} 1.332564
{txt}{space 20} {c |}
{space 9}1.postsub7c {c |}{col 22}{res}{space 2}-.7820209{col 34}{space 2} .4742875{col 45}{space 1}   -1.65{col 54}{space 3}0.099{col 62}{space 4}-1.711676{col 75}{space 3} .1476338
{txt}{space 20} {c |}
{space 4}postsub7c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .7589637{col 34}{space 2} .4780635{col 45}{space 1}    1.59{col 54}{space 3}0.112{col 62}{space 4}-.1780924{col 75}{space 3}  1.69602
{txt}{space 20} {c |}
{space 7}postsub7c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .7498893{col 34}{space 2} .4857123{col 45}{space 1}    1.54{col 54}{space 3}0.123{col 62}{space 4}-.2021594{col 75}{space 3} 1.701938
{txt}{space 20} {c |}
postsub7c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} -.858247{col 34}{space 2} .5011526{col 45}{space 1}   -1.71{col 54}{space 3}0.087{col 62}{space 4} -1.84056{col 75}{space 3} .1240663
{txt}{space 20} {c |}
{space 16}mage {c |}{col 22}{res}{space 2}-.0029566{col 34}{space 2} .0003066{col 45}{space 1}   -9.64{col 54}{space 3}0.000{col 62}{space 4}-.0035575{col 75}{space 3}-.0023557
{txt}{space 15}mage2 {c |}{col 22}{res}{space 2} .0000243{col 34}{space 2} 3.53e-06{col 45}{space 1}    6.88{col 54}{space 3}0.000{col 62}{space 4} .0000174{col 75}{space 3} .0000313
{txt}{space 15}_cons {c |}{col 22}{res}{space 2} .0373631{col 34}{space 2} .0049923{col 45}{space 1}    7.48{col 54}{space 3}0.000{col 62}{space 4} .0275777{col 75}{space 3} .0471485
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   283430{col 27}{space 1}   283430{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmtc{col 14}{c |}{space 1}      335{col 27}{space 1}        0{col 39}{result}{space 1}      335{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subffu
{txt}
{com}.                 
.                 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
. ***WASHING MACHINES, PRICES, SUBSIDIZED
. 
. reghdfe dlogprice i.presub3c##ib1.treatc##ib0.cat i.presub2c##ib1.treatc##ib0.cat i.presub1c##ib1.treatc##ib0.cat i.sub1c##ib1.treatc##ib0.cat i.postsub1c##ib1.treatc##ib0.cat i.postsub2c##ib1.treatc##ib0.cat i.postsub3c##ib1.treatc##ib0.cat i.postsub4c##ib1.treatc##ib0.cat i.postsub5c##ib1.treatc##ib0.cat i.postsub6c##ib1.treatc##ib0.cat i.postsub7c##ib1.treatc##ib0.cat  mage mage2  if country!="Hungary" & samplew , absorb (id2 cmtc) cluster(id)
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.cat{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treatc#1bn.cat{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{txt}note: 1.cat omitted because of collinearity
{txt}note: 0.treatc#1.cat omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   670,879
{txt}Absorbing 2 HDFE groups{col 51}F({res}  46{txt},{res}  16458{txt}){col 67}= {res}      3.48
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4327
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0167
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0003
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    16,459{txt}{col 51}Root MSE{col 67}= {res}    0.0697

{txt}{ralign 86:(Std. err. adjusted for {res:16,459} clusters in {res:id})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}           dlogprice{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}1.presub3c {c |}{col 22}{res}{space 2} .0197972{col 34}{space 2} .0154322{col 45}{space 1}    1.28{col 54}{space 3}0.200{col 62}{space 4}-.0104515{col 75}{space 3} .0500459
{txt}{space 12}0.treatc {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 5}presub3c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0022924{col 34}{space 2} .0184429{col 45}{space 1}   -0.12{col 54}{space 3}0.901{col 62}{space 4}-.0384425{col 75}{space 3} .0338578
{txt}{space 20} {c |}
{space 15}1.cat {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 8}presub3c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0942808{col 34}{space 2} .0320557{col 45}{space 1}    2.94{col 54}{space 3}0.003{col 62}{space 4}  .031448{col 75}{space 3} .1571135
{txt}{space 20} {c |}
{space 10}treatc#cat {c |}
{space 16}0 1  {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 1}presub3c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}-.0992417{col 34}{space 2} .0342662{col 45}{space 1}   -2.90{col 54}{space 3}0.004{col 62}{space 4}-.1664072{col 75}{space 3}-.0320762
{txt}{space 20} {c |}
{space 10}1.presub2c {c |}{col 22}{res}{space 2}-.0159208{col 34}{space 2} .0106362{col 45}{space 1}   -1.50{col 54}{space 3}0.134{col 62}{space 4}-.0367688{col 75}{space 3} .0049272
{txt}{space 20} {c |}
{space 5}presub2c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0156963{col 34}{space 2}  .014254{col 45}{space 1}    1.10{col 54}{space 3}0.271{col 62}{space 4} -.012243{col 75}{space 3} .0436357
{txt}{space 20} {c |}
{space 8}presub2c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0150937{col 34}{space 2} .0252559{col 45}{space 1}   -0.60{col 54}{space 3}0.550{col 62}{space 4} -.064598{col 75}{space 3} .0344107
{txt}{space 20} {c |}
{space 1}presub2c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2} .0064312{col 34}{space 2} .0277844{col 45}{space 1}    0.23{col 54}{space 3}0.817{col 62}{space 4}-.0480292{col 75}{space 3} .0608916
{txt}{space 20} {c |}
{space 10}1.presub1c {c |}{col 22}{res}{space 2} .0004846{col 34}{space 2} .0107438{col 45}{space 1}    0.05{col 54}{space 3}0.964{col 62}{space 4}-.0205744{col 75}{space 3} .0215436
{txt}{space 20} {c |}
{space 5}presub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0353757{col 34}{space 2} .0162029{col 45}{space 1}   -2.18{col 54}{space 3}0.029{col 62}{space 4}-.0671353{col 75}{space 3}-.0036162
{txt}{space 20} {c |}
{space 8}presub1c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0009522{col 34}{space 2} .0674672{col 45}{space 1}   -0.01{col 54}{space 3}0.989{col 62}{space 4}-.1331951{col 75}{space 3} .1312907
{txt}{space 20} {c |}
{space 1}presub1c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2} .0288944{col 34}{space 2} .0687794{col 45}{space 1}    0.42{col 54}{space 3}0.674{col 62}{space 4}-.1059207{col 75}{space 3} .1637096
{txt}{space 20} {c |}
{space 13}1.sub1c {c |}{col 22}{res}{space 2} .0287274{col 34}{space 2} .0104321{col 45}{space 1}    2.75{col 54}{space 3}0.006{col 62}{space 4} .0082794{col 75}{space 3} .0491754
{txt}{space 20} {c |}
{space 8}sub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0167479{col 34}{space 2} .0157469{col 45}{space 1}   -1.06{col 54}{space 3}0.288{col 62}{space 4}-.0476136{col 75}{space 3} .0141178
{txt}{space 20} {c |}
{space 11}sub1c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0073497{col 34}{space 2} .0399107{col 45}{space 1}    0.18{col 54}{space 3}0.854{col 62}{space 4}-.0708796{col 75}{space 3}  .085579
{txt}{space 20} {c |}
{space 4}sub1c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2} .0014878{col 34}{space 2} .0419768{col 45}{space 1}    0.04{col 54}{space 3}0.972{col 62}{space 4}-.0807912{col 75}{space 3} .0837669
{txt}{space 20} {c |}
{space 9}1.postsub1c {c |}{col 22}{res}{space 2} .0225037{col 34}{space 2} .0084642{col 45}{space 1}    2.66{col 54}{space 3}0.008{col 62}{space 4} .0059129{col 75}{space 3} .0390945
{txt}{space 20} {c |}
{space 4}postsub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0138185{col 34}{space 2} .0140785{col 45}{space 1}    0.98{col 54}{space 3}0.326{col 62}{space 4}-.0137769{col 75}{space 3} .0414139
{txt}{space 20} {c |}
{space 7}postsub1c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0142762{col 34}{space 2} .0363785{col 45}{space 1}    0.39{col 54}{space 3}0.695{col 62}{space 4}-.0570296{col 75}{space 3} .0855819
{txt}{space 20} {c |}
postsub1c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}-.0487881{col 34}{space 2} .0383913{col 45}{space 1}   -1.27{col 54}{space 3}0.204{col 62}{space 4}-.1240392{col 75}{space 3} .0264631
{txt}{space 20} {c |}
{space 9}1.postsub2c {c |}{col 22}{res}{space 2}-.0124199{col 34}{space 2} .0086174{col 45}{space 1}   -1.44{col 54}{space 3}0.150{col 62}{space 4}-.0293108{col 75}{space 3} .0044711
{txt}{space 20} {c |}
{space 4}postsub2c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0129674{col 34}{space 2} .0134202{col 45}{space 1}    0.97{col 54}{space 3}0.334{col 62}{space 4}-.0133377{col 75}{space 3} .0392725
{txt}{space 20} {c |}
{space 7}postsub2c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0117848{col 34}{space 2} .0367864{col 45}{space 1}   -0.32{col 54}{space 3}0.749{col 62}{space 4}-.0838901{col 75}{space 3} .0603205
{txt}{space 20} {c |}
postsub2c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2} .0159427{col 34}{space 2} .0384656{col 45}{space 1}    0.41{col 54}{space 3}0.679{col 62}{space 4}-.0594541{col 75}{space 3} .0913394
{txt}{space 20} {c |}
{space 9}1.postsub3c {c |}{col 22}{res}{space 2} .0011048{col 34}{space 2} .0098254{col 45}{space 1}    0.11{col 54}{space 3}0.910{col 62}{space 4} -.018154{col 75}{space 3} .0203637
{txt}{space 20} {c |}
{space 4}postsub3c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0088621{col 34}{space 2} .0143112{col 45}{space 1}   -0.62{col 54}{space 3}0.536{col 62}{space 4}-.0369137{col 75}{space 3} .0191894
{txt}{space 20} {c |}
{space 7}postsub3c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0414765{col 34}{space 2} .0305646{col 45}{space 1}    1.36{col 54}{space 3}0.175{col 62}{space 4}-.0184334{col 75}{space 3} .1013865
{txt}{space 20} {c |}
postsub3c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}-.0365642{col 34}{space 2} .0325428{col 45}{space 1}   -1.12{col 54}{space 3}0.261{col 62}{space 4}-.1003516{col 75}{space 3} .0272231
{txt}{space 20} {c |}
{space 9}1.postsub4c {c |}{col 22}{res}{space 2} .0100541{col 34}{space 2}  .007271{col 45}{space 1}    1.38{col 54}{space 3}0.167{col 62}{space 4}-.0041977{col 75}{space 3}  .024306
{txt}{space 20} {c |}
{space 4}postsub4c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0046195{col 34}{space 2} .0148176{col 45}{space 1}   -0.31{col 54}{space 3}0.755{col 62}{space 4}-.0336635{col 75}{space 3} .0244246
{txt}{space 20} {c |}
{space 7}postsub4c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0077622{col 34}{space 2} .0278526{col 45}{space 1}   -0.28{col 54}{space 3}0.780{col 62}{space 4}-.0623563{col 75}{space 3}  .046832
{txt}{space 20} {c |}
postsub4c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2} .0235793{col 34}{space 2} .0310799{col 45}{space 1}    0.76{col 54}{space 3}0.448{col 62}{space 4}-.0373407{col 75}{space 3} .0844993
{txt}{space 20} {c |}
{space 9}1.postsub5c {c |}{col 22}{res}{space 2} .0050192{col 34}{space 2} .0088624{col 45}{space 1}    0.57{col 54}{space 3}0.571{col 62}{space 4}-.0123521{col 75}{space 3} .0223906
{txt}{space 20} {c |}
{space 4}postsub5c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0095805{col 34}{space 2}  .015178{col 45}{space 1}    0.63{col 54}{space 3}0.528{col 62}{space 4}  -.02017{col 75}{space 3} .0393311
{txt}{space 20} {c |}
{space 7}postsub5c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}-.0456269{col 34}{space 2} .0276283{col 45}{space 1}   -1.65{col 54}{space 3}0.099{col 62}{space 4}-.0997813{col 75}{space 3} .0085276
{txt}{space 20} {c |}
postsub5c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2} .0193581{col 34}{space 2} .0307569{col 45}{space 1}    0.63{col 54}{space 3}0.529{col 62}{space 4}-.0409287{col 75}{space 3}  .079645
{txt}{space 20} {c |}
{space 9}1.postsub6c {c |}{col 22}{res}{space 2} .0009297{col 34}{space 2} .0087594{col 45}{space 1}    0.11{col 54}{space 3}0.915{col 62}{space 4}-.0162397{col 75}{space 3} .0180991
{txt}{space 20} {c |}
{space 4}postsub6c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0003143{col 34}{space 2} .0125325{col 45}{space 1}    0.03{col 54}{space 3}0.980{col 62}{space 4}-.0242509{col 75}{space 3} .0248794
{txt}{space 20} {c |}
{space 7}postsub6c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2} .0110669{col 34}{space 2} .0397957{col 45}{space 1}    0.28{col 54}{space 3}0.781{col 62}{space 4}-.0669369{col 75}{space 3} .0890707
{txt}{space 20} {c |}
postsub6c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}-.0056828{col 34}{space 2} .0411714{col 45}{space 1}   -0.14{col 54}{space 3}0.890{col 62}{space 4}-.0863832{col 75}{space 3} .0750176
{txt}{space 20} {c |}
{space 9}1.postsub7c {c |}{col 22}{res}{space 2}-.0252715{col 34}{space 2} .0101419{col 45}{space 1}   -2.49{col 54}{space 3}0.013{col 62}{space 4}-.0451507{col 75}{space 3}-.0053923
{txt}{space 20} {c |}
{space 4}postsub7c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0279468{col 34}{space 2}  .014224{col 45}{space 1}    1.96{col 54}{space 3}0.049{col 62}{space 4} .0000663{col 75}{space 3} .0558274
{txt}{space 20} {c |}
{space 7}postsub7c#cat {c |}
{space 16}1 1  {c |}{col 22}{res}{space 2}  .031089{col 34}{space 2} .0424272{col 45}{space 1}    0.73{col 54}{space 3}0.464{col 62}{space 4}-.0520729{col 75}{space 3} .1142508
{txt}{space 20} {c |}
postsub7c#treatc#cat {c |}
{space 14}1 0 1  {c |}{col 22}{res}{space 2}-.0281741{col 34}{space 2} .0439767{col 45}{space 1}   -0.64{col 54}{space 3}0.522{col 62}{space 4}-.1143731{col 75}{space 3} .0580249
{txt}{space 20} {c |}
{space 16}mage {c |}{col 22}{res}{space 2}-.0000265{col 34}{space 2} .0000275{col 45}{space 1}   -0.96{col 54}{space 3}0.335{col 62}{space 4}-.0000804{col 75}{space 3} .0000274
{txt}{space 15}mage2 {c |}{col 22}{res}{space 2} 5.54e-07{col 34}{space 2} 3.02e-07{col 45}{space 1}    1.83{col 54}{space 3}0.067{col 62}{space 4}-3.86e-08{col 75}{space 3} 1.15e-06
{txt}{space 15}_cons {c |}{col 22}{res}{space 2} -.002562{col 34}{space 2} .0004671{col 45}{space 1}   -5.49{col 54}{space 3}0.000{col 62}{space 4}-.0034775{col 75}{space 3}-.0016464
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   283430{col 27}{space 1}   283430{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmtc{col 14}{c |}{space 1}      335{col 27}{space 1}        0{col 39}{result}{space 1}      335{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. est store subwmp
{txt}
{com}. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++          
. ***REFRIGERATORS AND FREEZERS, PRICES, SUBSIDIZED
. 
. reghdfe dlogprice i.presub3c##ib1.treatc##ib1.cat i.presub2c##ib1.treatc##ib1.cat i.presub1c##ib1.treatc##ib1.cat i.sub1c##ib1.treatc##ib1.cat i.postsub1c##ib1.treatc##ib1.cat i.postsub2c##ib1.treatc##ib1.cat i.postsub3c##ib1.treatc##ib1.cat i.postsub4c##ib1.treatc##ib1.cat i.postsub5c##ib1.treatc##ib1.cat i.postsub6c##ib1.treatc##ib1.cat  i.postsub7c##ib1.treatc##ib1.cat mage mage2  if country!="Hungary"  & samplew, absorb (id2 cmtc) cluster(id)
{res}{txt}note: {res}0bn.treatc{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.cat{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}0bn.treatc#0bn.cat{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 60 iterations)
{res}{txt}note: 0.treatc omitted because of collinearity
{txt}note: 0.cat omitted because of collinearity
{txt}note: 0.treatc#0.cat omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   670,879
{txt}Absorbing 2 HDFE groups{col 51}F({res}  46{txt},{res}  16458{txt}){col 67}= {res}      3.48
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.4327
{txt}{col 51}Adj R-squared{col 67}= {res}    0.0167
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0003
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    16,459{txt}{col 51}Root MSE{col 67}= {res}    0.0697

{txt}{ralign 86:(Std. err. adjusted for {res:16,459} clusters in {res:id})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}           dlogprice{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}1.presub3c {c |}{col 22}{res}{space 2}  .114078{col 34}{space 2} .0280972{col 45}{space 1}    4.06{col 54}{space 3}0.000{col 62}{space 4} .0590044{col 75}{space 3} .1691515
{txt}{space 12}0.treatc {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 5}presub3c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.1015341{col 34}{space 2}   .02888{col 45}{space 1}   -3.52{col 54}{space 3}0.000{col 62}{space 4} -.158142{col 75}{space 3}-.0449262
{txt}{space 20} {c |}
{space 15}0.cat {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 8}presub3c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0942808{col 34}{space 2} .0320557{col 45}{space 1}   -2.94{col 54}{space 3}0.003{col 62}{space 4}-.1571135{col 75}{space 3} -.031448
{txt}{space 20} {c |}
{space 10}treatc#cat {c |}
{space 16}0 0  {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
{space 1}presub3c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} .0992417{col 34}{space 2} .0342662{col 45}{space 1}    2.90{col 54}{space 3}0.004{col 62}{space 4} .0320762{col 75}{space 3} .1664072
{txt}{space 20} {c |}
{space 10}1.presub2c {c |}{col 22}{res}{space 2}-.0310145{col 34}{space 2}  .022907{col 45}{space 1}   -1.35{col 54}{space 3}0.176{col 62}{space 4}-.0759146{col 75}{space 3} .0138857
{txt}{space 20} {c |}
{space 5}presub2c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0221276{col 34}{space 2}  .023849{col 45}{space 1}    0.93{col 54}{space 3}0.354{col 62}{space 4}-.0246191{col 75}{space 3} .0688742
{txt}{space 20} {c |}
{space 8}presub2c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0150937{col 34}{space 2} .0252559{col 45}{space 1}    0.60{col 54}{space 3}0.550{col 62}{space 4}-.0344107{col 75}{space 3}  .064598
{txt}{space 20} {c |}
{space 1}presub2c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2}-.0064312{col 34}{space 2} .0277844{col 45}{space 1}   -0.23{col 54}{space 3}0.817{col 62}{space 4}-.0608916{col 75}{space 3} .0480292
{txt}{space 20} {c |}
{space 10}1.presub1c {c |}{col 22}{res}{space 2}-.0004676{col 34}{space 2} .0666062{col 45}{space 1}   -0.01{col 54}{space 3}0.994{col 62}{space 4} -.131023{col 75}{space 3} .1300878
{txt}{space 20} {c |}
{space 5}presub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0064813{col 34}{space 2} .0668437{col 45}{space 1}   -0.10{col 54}{space 3}0.923{col 62}{space 4}-.1375021{col 75}{space 3} .1245395
{txt}{space 20} {c |}
{space 8}presub1c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0009522{col 34}{space 2} .0674672{col 45}{space 1}    0.01{col 54}{space 3}0.989{col 62}{space 4}-.1312907{col 75}{space 3} .1331951
{txt}{space 20} {c |}
{space 1}presub1c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2}-.0288944{col 34}{space 2} .0687794{col 45}{space 1}   -0.42{col 54}{space 3}0.674{col 62}{space 4}-.1637096{col 75}{space 3} .1059207
{txt}{space 20} {c |}
{space 13}1.sub1c {c |}{col 22}{res}{space 2} .0360771{col 34}{space 2} .0385231{col 45}{space 1}    0.94{col 54}{space 3}0.349{col 62}{space 4}-.0394324{col 75}{space 3} .1115865
{txt}{space 20} {c |}
{space 8}sub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}  -.01526{col 34}{space 2} .0389112{col 45}{space 1}   -0.39{col 54}{space 3}0.695{col 62}{space 4}-.0915303{col 75}{space 3} .0610102
{txt}{space 20} {c |}
{space 11}sub1c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0073497{col 34}{space 2} .0399107{col 45}{space 1}   -0.18{col 54}{space 3}0.854{col 62}{space 4} -.085579{col 75}{space 3} .0708796
{txt}{space 20} {c |}
{space 4}sub1c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2}-.0014878{col 34}{space 2} .0419768{col 45}{space 1}   -0.04{col 54}{space 3}0.972{col 62}{space 4}-.0837669{col 75}{space 3} .0807912
{txt}{space 20} {c |}
{space 9}1.postsub1c {c |}{col 22}{res}{space 2} .0367798{col 34}{space 2} .0353804{col 45}{space 1}    1.04{col 54}{space 3}0.299{col 62}{space 4}-.0325695{col 75}{space 3} .1061292
{txt}{space 20} {c |}
{space 4}postsub1c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0349695{col 34}{space 2} .0357169{col 45}{space 1}   -0.98{col 54}{space 3}0.328{col 62}{space 4}-.1049786{col 75}{space 3} .0350395
{txt}{space 20} {c |}
{space 7}postsub1c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0142762{col 34}{space 2} .0363785{col 45}{space 1}   -0.39{col 54}{space 3}0.695{col 62}{space 4}-.0855819{col 75}{space 3} .0570296
{txt}{space 20} {c |}
postsub1c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} .0487881{col 34}{space 2} .0383913{col 45}{space 1}    1.27{col 54}{space 3}0.204{col 62}{space 4}-.0264631{col 75}{space 3} .1240392
{txt}{space 20} {c |}
{space 9}1.postsub2c {c |}{col 22}{res}{space 2}-.0242047{col 34}{space 2} .0357624{col 45}{space 1}   -0.68{col 54}{space 3}0.499{col 62}{space 4}-.0943029{col 75}{space 3} .0458936
{txt}{space 20} {c |}
{space 4}postsub2c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}   .02891{col 34}{space 2}  .036049{col 45}{space 1}    0.80{col 54}{space 3}0.423{col 62}{space 4}  -.04175{col 75}{space 3}   .09957
{txt}{space 20} {c |}
{space 7}postsub2c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0117848{col 34}{space 2} .0367864{col 45}{space 1}    0.32{col 54}{space 3}0.749{col 62}{space 4}-.0603205{col 75}{space 3} .0838901
{txt}{space 20} {c |}
postsub2c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2}-.0159427{col 34}{space 2} .0384656{col 45}{space 1}   -0.41{col 54}{space 3}0.679{col 62}{space 4}-.0913394{col 75}{space 3} .0594541
{txt}{space 20} {c |}
{space 9}1.postsub3c {c |}{col 22}{res}{space 2} .0425814{col 34}{space 2} .0289425{col 45}{space 1}    1.47{col 54}{space 3}0.141{col 62}{space 4}-.0141491{col 75}{space 3} .0993119
{txt}{space 20} {c |}
{space 4}postsub3c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0454264{col 34}{space 2} .0292271{col 45}{space 1}   -1.55{col 54}{space 3}0.120{col 62}{space 4}-.1027146{col 75}{space 3} .0118619
{txt}{space 20} {c |}
{space 7}postsub3c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0414765{col 34}{space 2} .0305646{col 45}{space 1}   -1.36{col 54}{space 3}0.175{col 62}{space 4}-.1013865{col 75}{space 3} .0184334
{txt}{space 20} {c |}
postsub3c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} .0365642{col 34}{space 2} .0325428{col 45}{space 1}    1.12{col 54}{space 3}0.261{col 62}{space 4}-.0272231{col 75}{space 3} .1003516
{txt}{space 20} {c |}
{space 9}1.postsub4c {c |}{col 22}{res}{space 2}  .002292{col 34}{space 2} .0268868{col 45}{space 1}    0.09{col 54}{space 3}0.932{col 62}{space 4}-.0504091{col 75}{space 3}  .054993
{txt}{space 20} {c |}
{space 4}postsub4c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0189598{col 34}{space 2} .0273202{col 45}{space 1}    0.69{col 54}{space 3}0.488{col 62}{space 4}-.0345908{col 75}{space 3} .0725105
{txt}{space 20} {c |}
{space 7}postsub4c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0077622{col 34}{space 2} .0278526{col 45}{space 1}    0.28{col 54}{space 3}0.780{col 62}{space 4} -.046832{col 75}{space 3} .0623563
{txt}{space 20} {c |}
postsub4c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2}-.0235793{col 34}{space 2} .0310799{col 45}{space 1}   -0.76{col 54}{space 3}0.448{col 62}{space 4}-.0844993{col 75}{space 3} .0373407
{txt}{space 20} {c |}
{space 9}1.postsub5c {c |}{col 22}{res}{space 2}-.0406076{col 34}{space 2} .0261683{col 45}{space 1}   -1.55{col 54}{space 3}0.121{col 62}{space 4}-.0919003{col 75}{space 3} .0106851
{txt}{space 20} {c |}
{space 4}postsub5c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0289386{col 34}{space 2} .0267508{col 45}{space 1}    1.08{col 54}{space 3}0.279{col 62}{space 4}-.0234959{col 75}{space 3} .0813731
{txt}{space 20} {c |}
{space 7}postsub5c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} .0456269{col 34}{space 2} .0276283{col 45}{space 1}    1.65{col 54}{space 3}0.099{col 62}{space 4}-.0085276{col 75}{space 3} .0997813
{txt}{space 20} {c |}
postsub5c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2}-.0193581{col 34}{space 2} .0307569{col 45}{space 1}   -0.63{col 54}{space 3}0.529{col 62}{space 4} -.079645{col 75}{space 3} .0409287
{txt}{space 20} {c |}
{space 9}1.postsub6c {c |}{col 22}{res}{space 2} .0119966{col 34}{space 2} .0388194{col 45}{space 1}    0.31{col 54}{space 3}0.757{col 62}{space 4}-.0640936{col 75}{space 3} .0880869
{txt}{space 20} {c |}
{space 4}postsub6c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0053685{col 34}{space 2} .0392173{col 45}{space 1}   -0.14{col 54}{space 3}0.891{col 62}{space 4}-.0822386{col 75}{space 3} .0715016
{txt}{space 20} {c |}
{space 7}postsub6c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0110669{col 34}{space 2} .0397957{col 45}{space 1}   -0.28{col 54}{space 3}0.781{col 62}{space 4}-.0890707{col 75}{space 3} .0669369
{txt}{space 20} {c |}
postsub6c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} .0056828{col 34}{space 2} .0411714{col 45}{space 1}    0.14{col 54}{space 3}0.890{col 62}{space 4}-.0750176{col 75}{space 3} .0863832
{txt}{space 20} {c |}
{space 9}1.postsub7c {c |}{col 22}{res}{space 2} .0058175{col 34}{space 2} .0411971{col 45}{space 1}    0.14{col 54}{space 3}0.888{col 62}{space 4}-.0749332{col 75}{space 3} .0865682
{txt}{space 20} {c |}
{space 4}postsub7c#treatc {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2}-.0002273{col 34}{space 2} .0416127{col 45}{space 1}   -0.01{col 54}{space 3}0.996{col 62}{space 4}-.0817927{col 75}{space 3} .0813381
{txt}{space 20} {c |}
{space 7}postsub7c#cat {c |}
{space 16}1 0  {c |}{col 22}{res}{space 2} -.031089{col 34}{space 2} .0424272{col 45}{space 1}   -0.73{col 54}{space 3}0.464{col 62}{space 4}-.1142508{col 75}{space 3} .0520729
{txt}{space 20} {c |}
postsub7c#treatc#cat {c |}
{space 14}1 0 0  {c |}{col 22}{res}{space 2} .0281741{col 34}{space 2} .0439767{col 45}{space 1}    0.64{col 54}{space 3}0.522{col 62}{space 4}-.0580249{col 75}{space 3} .1143731
{txt}{space 20} {c |}
{space 16}mage {c |}{col 22}{res}{space 2}-.0000265{col 34}{space 2} .0000275{col 45}{space 1}   -0.96{col 54}{space 3}0.335{col 62}{space 4}-.0000804{col 75}{space 3} .0000274
{txt}{space 15}mage2 {c |}{col 22}{res}{space 2} 5.54e-07{col 34}{space 2} 3.02e-07{col 45}{space 1}    1.83{col 54}{space 3}0.067{col 62}{space 4}-3.86e-08{col 75}{space 3} 1.15e-06
{txt}{space 15}_cons {c |}{col 22}{res}{space 2} -.002562{col 34}{space 2} .0004671{col 45}{space 1}   -5.49{col 54}{space 3}0.000{col 62}{space 4}-.0034775{col 75}{space 3}-.0016464
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 13}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text} Absorbed FE{col 14}{c |} Categories{col 27} - Redundant{col 39}  = Num. Coefs{col 54}{c |}
{res}{col 1}{text}{hline 13}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}         id2{col 14}{c |}{space 1}   283430{col 27}{space 1}   283430{col 39}{result}{space 1}        0{col 53}{text}*{col 54}{c |}
{res}{col 1}{text}        cmtc{col 14}{c |}{space 1}      335{col 27}{space 1}        0{col 39}{result}{space 1}      335{col 53}{text} {col 54}{c |}
{res}{col 1}{text}{hline 13}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}.                 est store subffp
{txt}
{com}.                 
. 
. *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
. ***TABLES               
. 
. **UNITS AND PRICES BY CATEGORY
. esttab subwmu subffu    subwmp subffp, se star(* 0.10 ** 0.05 *** 0.01) mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) keep(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) 
{res}
{txt}{hline 76}
{txt}                      (1)             (2)             (3)             (4)   
{txt}                   subwmu          subffu          subwmp          subffp   
{txt}{hline 76}
{txt}1.presub3c  {res}       -0.016           0.988***        0.020           0.114***{txt}
            {res} {ralign 12:{txt:(}0.125{txt:)}}    {ralign 12:{txt:(}0.261{txt:)}}    {ralign 12:{txt:(}0.015{txt:)}}    {ralign 12:{txt:(}0.028{txt:)}}   {txt}
{txt}1.presub2c  {res}       -0.043          -1.196***       -0.016          -0.031   {txt}
            {res} {ralign 12:{txt:(}0.115{txt:)}}    {ralign 12:{txt:(}0.221{txt:)}}    {ralign 12:{txt:(}0.011{txt:)}}    {ralign 12:{txt:(}0.023{txt:)}}   {txt}
{txt}1.presub1c  {res}       -0.076          -0.058           0.000          -0.000   {txt}
            {res} {ralign 12:{txt:(}0.112{txt:)}}    {ralign 12:{txt:(}0.348{txt:)}}    {ralign 12:{txt:(}0.011{txt:)}}    {ralign 12:{txt:(}0.067{txt:)}}   {txt}
{txt}1.sub1c     {res}        0.918***        0.933**         0.029***        0.036   {txt}
            {res} {ralign 12:{txt:(}0.094{txt:)}}    {ralign 12:{txt:(}0.466{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}    {ralign 12:{txt:(}0.039{txt:)}}   {txt}
{txt}1.postsub1c {res}       -0.844***       -1.006*          0.023***        0.037   {txt}
            {res} {ralign 12:{txt:(}0.096{txt:)}}    {ralign 12:{txt:(}0.579{txt:)}}    {ralign 12:{txt:(}0.008{txt:)}}    {ralign 12:{txt:(}0.035{txt:)}}   {txt}
{txt}1.postsub2c {res}        0.044           0.243          -0.012          -0.024   {txt}
            {res} {ralign 12:{txt:(}0.102{txt:)}}    {ralign 12:{txt:(}0.532{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}    {ralign 12:{txt:(}0.036{txt:)}}   {txt}
{txt}1.postsub3c {res}       -0.406***       -1.049***        0.001           0.043   {txt}
            {res} {ralign 12:{txt:(}0.110{txt:)}}    {ralign 12:{txt:(}0.313{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}    {ralign 12:{txt:(}0.029{txt:)}}   {txt}
{txt}1.postsub4c {res}        0.978***        1.727***        0.010           0.002   {txt}
            {res} {ralign 12:{txt:(}0.112{txt:)}}    {ralign 12:{txt:(}0.394{txt:)}}    {ralign 12:{txt:(}0.007{txt:)}}    {ralign 12:{txt:(}0.027{txt:)}}   {txt}
{txt}1.postsub5c {res}       -0.594***       -1.354***        0.005          -0.041   {txt}
            {res} {ralign 12:{txt:(}0.107{txt:)}}    {ralign 12:{txt:(}0.458{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}    {ralign 12:{txt:(}0.026{txt:)}}   {txt}
{txt}1.postsub6c {res}        0.085           0.409           0.001           0.012   {txt}
            {res} {ralign 12:{txt:(}0.111{txt:)}}    {ralign 12:{txt:(}0.388{txt:)}}    {ralign 12:{txt:(}0.009{txt:)}}    {ralign 12:{txt:(}0.039{txt:)}}   {txt}
{txt}1.postsub7c {res}       -0.032          -0.782*         -0.025**         0.006   {txt}
            {res} {ralign 12:{txt:(}0.105{txt:)}}    {ralign 12:{txt:(}0.474{txt:)}}    {ralign 12:{txt:(}0.010{txt:)}}    {ralign 12:{txt:(}0.041{txt:)}}   {txt}
{txt}{hline 76}
{txt}N           {res}       670879          670879          670879          670879   {txt}
{txt}{hline 76}
{txt}Standard errors in parentheses
{txt}* p<0.10, ** p<0.05, *** p<0.01

{com}. 
. esttab   subwmu subffu    subwmp subffp  using "R:\WSV2\TBu_BMa\Subsidies Project\Results\HR_15_cat.tex", replace  se nostar mtitles nogaps b(%8.3f) t(%6.2f)  scalars(N ) order(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) keep(1.presub3c 1.presub2c 1.presub1c 1.sub1c 1.postsub1c 1.postsub2c 1.postsub3c 1.postsub4c 1.postsub5c 1.postsub6c 1.postsub7c) 
{res}{txt}(output written to {browse  `"R:\WSV2\TBu_BMa\Subsidies Project\Results\HR_15_cat.tex"'})

{com}. 
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}R:\WSV2\TBu_BMa\Subsidies Project\Results\HR_Programs_Estimates_2023.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}18 Sep 2023, 09:15:44
{txt}{.-}
{smcl}
{txt}{sf}{ul off}